Record Class RenderEvent
java.lang.Object
java.lang.Record
cromveil.combatnumbers.events.RenderEvent
public record RenderEvent(net.minecraft.world.entity.LivingEntity entity, float value, net.minecraft.resources.Identifier skinId, net.minecraft.resources.Identifier animationId)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRenderEvent(net.minecraft.world.entity.LivingEntity entity, float value, net.minecraft.resources.Identifier skinId, net.minecraft.resources.Identifier animationId) Creates an instance of aRenderEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.IdentifierReturns the value of theanimationIdrecord component.net.minecraft.world.entity.LivingEntityentity()Returns the value of theentityrecord component.final booleanIndicates whether some other object is "equal to" this one.static RenderEventfrom(CombatEvent event, Style style) final inthashCode()Returns a hash code value for this object.net.minecraft.resources.IdentifierskinId()Returns the value of theskinIdrecord component.final StringtoString()Returns a string representation of this record class.floatvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
RenderEvent
public RenderEvent(net.minecraft.world.entity.LivingEntity entity, float value, net.minecraft.resources.Identifier skinId, net.minecraft.resources.Identifier animationId) Creates an instance of aRenderEventrecord class.- Parameters:
entity- the value for theentityrecord componentvalue- the value for thevaluerecord componentskinId- the value for theskinIdrecord componentanimationId- the value for theanimationIdrecord component
-
-
Method Details
-
from
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
entity
public net.minecraft.world.entity.LivingEntity entity()Returns the value of theentityrecord component.- Returns:
- the value of the
entityrecord component
-
value
public float value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
skinId
public net.minecraft.resources.Identifier skinId()Returns the value of theskinIdrecord component.- Returns:
- the value of the
skinIdrecord component
-
animationId
public net.minecraft.resources.Identifier animationId()Returns the value of theanimationIdrecord component.- Returns:
- the value of the
animationIdrecord component
-