Contents
Record Class MapMarkerOverrideContext
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.adventure.worldevents.context.MapMarkerOverrideContext
- All Implemented Interfaces:
Context
public record MapMarkerOverrideContext(@Nonnull String name, @Nonnull MapMarkerOverride override)
extends Record
implements Context
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RecordCodec<MapMarkerOverrideContext> static final StringFields inherited from interface Context
TYPE_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionMapMarkerOverrideContext(String name, MapMarkerOverride override) Creates an instance of aMapMarkerOverrideContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup(CommandBuffer<EntityStore> buffer, WorldEvent event) Called when the owning event ends, whether by success or failure.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.override()Returns the value of theoverriderecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
ID
- See Also:
-
CODEC
-
-
Constructor Details
-
MapMarkerOverrideContext
Creates an instance of aMapMarkerOverrideContextrecord class.- Parameters:
name- the value for thenamerecord componentoverride- the value for theoverriderecord component
-
-
Method Details
-
cleanup
Description copied from interface:ContextCalled when the owning event ends, whether by success or failure.Override to release resources or trigger compensating actions. Enqueue any ECS mutations through
bufferrather than applying them directly. This method is only called for context entries that are still present in the map when the event ends; entries that were removed viaconsumeearlier in the event's lifetime will not havecleanupinvoked. -
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
override
Returns the value of theoverriderecord component.- Returns:
- the value of the
overriderecord component
-