Record Class AstralCrystalRenderer

java.lang.Object
java.lang.Record
tech.anonymoushacker1279.immersiveweapons.client.renderer.blockentity.AstralCrystalRenderer
All Implemented Interfaces:
net.minecraft.client.renderer.blockentity.BlockEntityRenderer<AstralCrystalBlockEntity, GenericInventoryRenderState>, net.neoforged.neoforge.client.extensions.IBlockEntityRendererExtension<AstralCrystalBlockEntity>

public record AstralCrystalRenderer(net.minecraft.client.renderer.item.ItemModelResolver itemModelResolver) extends Record implements net.minecraft.client.renderer.blockentity.BlockEntityRenderer<AstralCrystalBlockEntity, GenericInventoryRenderState>
  • Constructor Summary

    Constructors
    Constructor
    Description
    AstralCrystalRenderer(net.minecraft.client.renderer.item.ItemModelResolver itemModelResolver)
    Creates an instance of a AstralCrystalRenderer record class.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    void
    extractRenderState(AstralCrystalBlockEntity blockEntity, GenericInventoryRenderState state, float partialTick, net.minecraft.world.phys.Vec3 cameraPos, net.minecraft.client.renderer.feature.ModelFeatureRenderer.CrumblingOverlay crumblingOverlay)
     
    final int
    Returns a hash code value for this object.
    net.minecraft.client.renderer.item.ItemModelResolver
    Returns the value of the itemModelResolver record component.
    void
    submit(GenericInventoryRenderState state, com.mojang.blaze3d.vertex.PoseStack stack, net.minecraft.client.renderer.SubmitNodeCollector collector, net.minecraft.client.renderer.state.level.CameraRenderState cameraState)
     
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.client.renderer.blockentity.BlockEntityRenderer

    getViewDistance, shouldRender, shouldRenderOffScreen

    Methods inherited from interface net.neoforged.neoforge.client.extensions.IBlockEntityRendererExtension

    getRenderBoundingBox
  • Constructor Details

    • AstralCrystalRenderer

      public AstralCrystalRenderer(net.minecraft.client.renderer.item.ItemModelResolver itemModelResolver)
      Creates an instance of a AstralCrystalRenderer record class.
      Parameters:
      itemModelResolver - the value for the itemModelResolver record component
  • Method Details

    • createRenderState

      public GenericInventoryRenderState createRenderState()
      Specified by:
      createRenderState in interface net.minecraft.client.renderer.blockentity.BlockEntityRenderer<AstralCrystalBlockEntity, GenericInventoryRenderState>
    • extractRenderState

      public void extractRenderState(AstralCrystalBlockEntity blockEntity, GenericInventoryRenderState state, float partialTick, net.minecraft.world.phys.Vec3 cameraPos, @Nullable net.minecraft.client.renderer.feature.ModelFeatureRenderer.CrumblingOverlay crumblingOverlay)
      Specified by:
      extractRenderState in interface net.minecraft.client.renderer.blockentity.BlockEntityRenderer<AstralCrystalBlockEntity, GenericInventoryRenderState>
    • submit

      public void submit(GenericInventoryRenderState state, com.mojang.blaze3d.vertex.PoseStack stack, net.minecraft.client.renderer.SubmitNodeCollector collector, net.minecraft.client.renderer.state.level.CameraRenderState cameraState)
      Specified by:
      submit in interface net.minecraft.client.renderer.blockentity.BlockEntityRenderer<AstralCrystalBlockEntity, GenericInventoryRenderState>
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • itemModelResolver

      public net.minecraft.client.renderer.item.ItemModelResolver itemModelResolver()
      Returns the value of the itemModelResolver record component.
      Returns:
      the value of the itemModelResolver record component