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
    Modifier and Type
    Field
    Description
    protected static final codechicken.lib.vec.Vector3[]
     
    protected static final codechicken.lib.vec.Vector3[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    static codechicken.lib.vec.Vector3
    getPath(int src, int dst, double d)
     
    static codechicken.lib.vec.Vector3
    getPerp(int src, int dst)
     
    void
    renderDynamic(T part, com.mojang.blaze3d.vertex.PoseStack pStack, net.minecraft.client.renderer.MultiBufferSource buffers, int packedLight, int packedOverlay, float partialTicks)
     
    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)
     
    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)
     
    void
    renderStatic(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, wait

    Methods 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:
      renderStatic in interface codechicken.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:
      renderDynamic in interface codechicken.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:
      drawHighlight in interface codechicken.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)