mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-11-05 08:03:01 +00:00
Fix cables and turtle rendering.
This commit is contained in:
@@ -217,7 +217,7 @@ public final class ComputerCraftAPI
|
||||
* @return The element's node
|
||||
* @see IWiredElement#getNode()
|
||||
*/
|
||||
@Nonnull
|
||||
@Nullable
|
||||
public static IWiredElement getWiredElementAt(@Nonnull BlockView world, @Nonnull BlockPos pos, @Nonnull Direction side )
|
||||
{
|
||||
return getInstance().getWiredElementAt( world, pos, side );
|
||||
@@ -274,7 +274,7 @@ public final class ComputerCraftAPI
|
||||
@Nonnull
|
||||
IWiredNode createWiredNodeForElement( @Nonnull IWiredElement element );
|
||||
|
||||
@Nonnull
|
||||
@Nullable
|
||||
IWiredElement getWiredElementAt( @Nonnull BlockView world, @Nonnull BlockPos pos, @Nonnull Direction side );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,8 @@ import net.minecraft.client.render.model.BakedModel;
|
||||
import net.minecraft.client.render.model.BakedModelManager;
|
||||
import net.minecraft.client.util.ModelIdentifier;
|
||||
import net.minecraft.client.util.math.AffineTransformation;
|
||||
import net.minecraft.client.util.math.MatrixStack;
|
||||
import net.minecraft.client.util.math.Vector3f;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import javax.annotation.Nonnull;
|
||||
import java.util.Objects;
|
||||
@@ -60,4 +62,16 @@ public final class TransformedModel
|
||||
{
|
||||
return matrix;
|
||||
}
|
||||
|
||||
public void push(MatrixStack matrixStack) {
|
||||
matrixStack.push();
|
||||
|
||||
matrixStack.translate(matrix.translation.getX(), matrix.translation.getY(), matrix.translation.getZ());
|
||||
|
||||
matrixStack.multiply(matrix.getRotation2());
|
||||
|
||||
matrixStack.scale(matrix.scale.getX(), matrix.scale.getY(), matrix.scale.getZ());
|
||||
|
||||
matrixStack.multiply(matrix.rotation1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user