Record Class UpdateEvents
java.lang.Object
java.lang.Record
com.github.thedeathlycow.thermoo.impl.core.UpdateEvents
public record UpdateEvents(dev.yumi.commons.event.Event<net.minecraft.resources.Identifier, LivingEntityTemperatureTickEvents.GetTemperatureChange> event)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateEvents(dev.yumi.commons.event.Event<net.minecraft.resources.Identifier, LivingEntityTemperatureTickEvents.GetTemperatureChange> event) Creates an instance of aUpdateEventsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.dev.yumi.commons.event.Event<net.minecraft.resources.Identifier, LivingEntityTemperatureTickEvents.GetTemperatureChange> event()Returns the value of theeventrecord component.static UpdateEventsgetOrCreate(net.minecraft.resources.ResourceKey<TemperatureSource> key) final inthashCode()Returns a hash code value for this object.static booleanhasRegisteredEvents(net.minecraft.resources.ResourceKey<TemperatureSource> key) static voidinvokeAllWithContext(EnvironmentTickContext<? extends net.minecraft.world.entity.LivingEntity> context, net.minecraft.core.HolderLookup<TemperatureSource> lookup) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UpdateEvents
public UpdateEvents(dev.yumi.commons.event.Event<net.minecraft.resources.Identifier, LivingEntityTemperatureTickEvents.GetTemperatureChange> event) Creates an instance of aUpdateEventsrecord class.- Parameters:
event- the value for theeventrecord component
-
-
Method Details
-
invokeAllWithContext
public static void invokeAllWithContext(EnvironmentTickContext<? extends net.minecraft.world.entity.LivingEntity> context, net.minecraft.core.HolderLookup<TemperatureSource> lookup) -
getOrCreate
-
hasRegisteredEvents
public static boolean hasRegisteredEvents(net.minecraft.resources.ResourceKey<TemperatureSource> key) -
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. All components in this record class are compared withObjects::equals(Object,Object). -
event
public dev.yumi.commons.event.Event<net.minecraft.resources.Identifier, LivingEntityTemperatureTickEvents.GetTemperatureChange> event()Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-