Record Class ClientProxy.ItemBEWLR

java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.client.ClientProxy.ItemBEWLR
All Implemented Interfaces:
net.neoforged.neoforge.client.extensions.common.IClientItemExtensions
Enclosing class:
ClientProxy

public static record ClientProxy.ItemBEWLR(net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer renderer) extends Record implements net.neoforged.neoforge.client.extensions.common.IClientItemExtensions
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.neoforged.neoforge.client.extensions.common.IClientItemExtensions

    net.neoforged.neoforge.client.extensions.common.IClientItemExtensions.FontContext
  • Field Summary

    Fields inherited from interface net.neoforged.neoforge.client.extensions.common.IClientItemExtensions

    DEFAULT
  • Constructor Summary

    Constructors
    Constructor
    Description
    ItemBEWLR(net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer renderer)
    Creates an instance of a ItemBEWLR record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer
     
    final int
    Returns a hash code value for this object.
    net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer
    Returns the value of the renderer record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.neoforged.neoforge.client.extensions.common.IClientItemExtensions

    applyForgeHandTransform, getArmorLayerTintColor, getArmPose, getDefaultDyeColor, getFont, getGenericArmorModel, getHumanoidArmorModel, renderHelmetOverlay, renderHelmetOverlay, setupModelAnimations, shouldBobAsEntity, shouldSpreadAsEntity
  • Constructor Details

    • ItemBEWLR

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

    • getCustomRenderer

      public net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer getCustomRenderer()
      Specified by:
      getCustomRenderer in interface net.neoforged.neoforge.client.extensions.common.IClientItemExtensions
    • 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.
    • renderer

      public net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer renderer()
      Returns the value of the renderer record component.
      Returns:
      the value of the renderer record component