Package com.pixelmonmod.pixelmon.client
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
ConstructorsConstructorDescriptionItemBEWLR
(net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer renderer) Creates an instance of aItemBEWLR
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer
final int
hashCode()
Returns a hash code value for this object.net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer
renderer()
Returns the value of therenderer
record component.final String
toString()
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 aItemBEWLR
record class.- Parameters:
renderer
- the value for therenderer
record component
-
-
Method Details
-
getCustomRenderer
public net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer getCustomRenderer()- Specified by:
getCustomRenderer
in interfacenet.neoforged.neoforge.client.extensions.common.IClientItemExtensions
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
. -
renderer
public net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer renderer()Returns the value of therenderer
record component.- Returns:
- the value of the
renderer
record component
-