Contents
Record Class Point
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.adventure.worldevents.action.effect.shape.Point
- All Implemented Interfaces:
Shape
-
Field Summary
FieldsFields inherited from interface Shape
TYPE_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(org.joml.Vector3d origin, VisualFX vfx, SoundFX sfx, List<Ref<EntityStore>> players, CommandBuffer<EntityStore> buffer, RandomGenerator random) Emitsvfxand/orsfxat the positions defined by this shape.intcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoffsetMaxrecord component.Returns the value of theoffsetMinrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
ID
- See Also:
-
CODEC
-
-
Constructor Details
-
Point
-
-
Method Details
-
apply
public void apply(@Nonnull org.joml.Vector3d origin, @Nullable VisualFX vfx, @Nullable SoundFX sfx, @Nonnull List<Ref<EntityStore>> players, @Nonnull CommandBuffer<EntityStore> buffer, @Nonnull RandomGenerator random) Description copied from interface:ShapeEmitsvfxand/orsfxat the positions defined by this shape.Either or both effect arguments may be
null; check before calling their respectivesendmethods.- Specified by:
applyin interfaceShape- Parameters:
origin- the world position around which effects are distributedvfx- the visual effect to emit, ornullif nonesfx- the sound effect to emit, ornullif noneplayers- the players to receive the effects, already filtered to the action's radiusbuffer- the command buffer for the current tickrandom- a random source for per-point variation (offsets, scale, pitch, etc.)
-
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. -
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
offsetMin
Returns the value of theoffsetMinrecord component.- Returns:
- the value of the
offsetMinrecord component
-
offsetMax
Returns the value of theoffsetMaxrecord component.- Returns:
- the value of the
offsetMaxrecord component
-