Class TranslocatorPartRenderer<T extends TranslocatorPart>
java.lang.Object
codechicken.translocators.client.render.TranslocatorPartRenderer<T>
- All Implemented Interfaces:
codechicken.multipart.api.part.render.PartRenderer<T>
- Direct Known Subclasses:
FluidTranslocatorPartRenderer,ItemTranslocatorPartRenderer
public class TranslocatorPartRenderer<T extends TranslocatorPart>
extends Object
implements codechicken.multipart.api.part.render.PartRenderer<T>
Created by covers1624 on 4/5/23.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandrawHighlight(T part, codechicken.multipart.util.PartRayTraceResult hit, net.minecraft.client.Camera camera, com.mojang.blaze3d.vertex.PoseStack pStack, net.minecraft.client.renderer.MultiBufferSource buffers, float partialTicks) static codechicken.lib.vec.Vector3getPath(int src, int dst, double d) static codechicken.lib.vec.Vector3getPerp(int src, int dst) voidrenderDynamic(T part, com.mojang.blaze3d.vertex.PoseStack pStack, net.minecraft.client.renderer.MultiBufferSource buffers, int packedLight, int packedOverlay, float partialTicks) static voidrenderItem(int type, com.mojang.blaze3d.vertex.PoseStack pStack, net.minecraft.world.item.ItemDisplayContext ctx, net.minecraft.client.renderer.MultiBufferSource buffers, int packedLight, int packedOverlay) static voidrenderParticle(codechicken.lib.render.CCRenderState ccrs, codechicken.lib.vec.Matrix4 mat, codechicken.lib.colour.Colour colour, double s, double u1, double v1, double u2, double v2) voidrenderStatic(T part, @Nullable net.minecraft.client.renderer.RenderType layer, codechicken.lib.render.CCRenderState ccrs) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface codechicken.multipart.api.part.render.PartRenderer
renderBreaking
-
Field Details
-
sidePos
protected static final codechicken.lib.vec.Vector3[] sidePos -
sideVec
protected static final codechicken.lib.vec.Vector3[] sideVec
-
-
Constructor Details
-
TranslocatorPartRenderer
public TranslocatorPartRenderer()
-
-
Method Details
-
renderStatic
public void renderStatic(T part, @Nullable @Nullable net.minecraft.client.renderer.RenderType layer, codechicken.lib.render.CCRenderState ccrs) - Specified by:
renderStaticin interfacecodechicken.multipart.api.part.render.PartRenderer<T extends TranslocatorPart>
-
renderDynamic
public void renderDynamic(T part, com.mojang.blaze3d.vertex.PoseStack pStack, net.minecraft.client.renderer.MultiBufferSource buffers, int packedLight, int packedOverlay, float partialTicks) - Specified by:
renderDynamicin interfacecodechicken.multipart.api.part.render.PartRenderer<T extends TranslocatorPart>
-
drawHighlight
public boolean drawHighlight(T part, codechicken.multipart.util.PartRayTraceResult hit, net.minecraft.client.Camera camera, com.mojang.blaze3d.vertex.PoseStack pStack, net.minecraft.client.renderer.MultiBufferSource buffers, float partialTicks) - Specified by:
drawHighlightin interfacecodechicken.multipart.api.part.render.PartRenderer<T extends TranslocatorPart>
-
renderItem
public static void renderItem(int type, com.mojang.blaze3d.vertex.PoseStack pStack, net.minecraft.world.item.ItemDisplayContext ctx, net.minecraft.client.renderer.MultiBufferSource buffers, int packedLight, int packedOverlay) -
renderParticle
public static void renderParticle(codechicken.lib.render.CCRenderState ccrs, codechicken.lib.vec.Matrix4 mat, codechicken.lib.colour.Colour colour, double s, double u1, double v1, double u2, double v2) -
getPath
public static codechicken.lib.vec.Vector3 getPath(int src, int dst, double d) -
getPerp
public static codechicken.lib.vec.Vector3 getPerp(int src, int dst)
-