Class MissileRenderData

java.lang.Object
com.hbm_m.client.render.missile.MissileRenderData

public final class MissileRenderData extends Object
  • Constructor Details

    • MissileRenderData

      public MissileRenderData(net.minecraft.resources.ResourceLocation itemId, net.minecraft.resources.ResourceLocation texture, float scale, ItemRenderMissileGeneric.RenderMissileType renderType)
  • Method Details

    • itemId

      public net.minecraft.resources.ResourceLocation itemId()
    • texture

      public net.minecraft.resources.ResourceLocation texture()
    • scale

      public float scale()
    • renderType

    • render

      public void render(com.mojang.blaze3d.vertex.PoseStack poseStack, int packedLight, net.minecraft.core.BlockPos lightPos)
    • render

      public void render(com.mojang.blaze3d.vertex.PoseStack poseStack, int packedLight, net.minecraft.core.BlockPos lightPos, @Nullable net.minecraft.client.renderer.MultiBufferSource bufferSource)
    • render

      public void render(com.mojang.blaze3d.vertex.PoseStack poseStack, int packedLight, net.minecraft.core.BlockPos lightPos, @Nullable net.minecraft.client.renderer.MultiBufferSource bufferSource, @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity)
    • standard

      public static MissileRenderData standard(net.minecraft.resources.ResourceLocation itemId, net.minecraft.resources.ResourceLocation texture, ItemRenderMissileGeneric.RenderMissileType renderType)
    • large

      public static MissileRenderData large(net.minecraft.resources.ResourceLocation itemId, net.minecraft.resources.ResourceLocation texture, ItemRenderMissileGeneric.RenderMissileType renderType)
    • stealth

      @Nullable public static MissileRenderData stealth(net.minecraft.resources.ResourceLocation itemId)
    • withPadScale

      public static MissileRenderData withPadScale(net.minecraft.resources.ResourceLocation itemId, net.minecraft.resources.ResourceLocation texture, float padScale)
      Pad / in-flight fallback; reuses ItemRenderMissileGeneric.RenderMissileType from registry when the item is registered.