Contents
Record Class VisualFX
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.adventure.worldevents.action.effect.VisualFX
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasset()Returns the value of theassetrecord component.color()Returns the value of thecolorrecord component.Returns the value of thedurationMaxrecord component.Returns the value of thedurationMinrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.joml.Vector3doffset()Returns the value of theoffsetrecord component.scaleMax()Returns the value of thescaleMaxrecord component.scaleMin()Returns the value of thescaleMinrecord component.voidsend(Position position, Direction direction, List<Ref<EntityStore>> players, CommandBuffer<EntityStore> buffer, RandomGenerator random) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
VisualFX
public VisualFX(@Nonnull String asset, @Nullable Color color, @Nullable Float scaleMin, @Nullable Float scaleMax, @Nullable org.joml.Vector3d offset, @Nullable Float durationMin, @Nullable Float durationMax) Creates an instance of aVisualFXrecord class.- Parameters:
asset- the value for theassetrecord componentcolor- the value for thecolorrecord componentscaleMin- the value for thescaleMinrecord componentscaleMax- the value for thescaleMaxrecord componentoffset- the value for theoffsetrecord componentdurationMin- the value for thedurationMinrecord componentdurationMax- the value for thedurationMaxrecord component
-
-
Method Details
-
send
public void send(@Nonnull Position position, @Nonnull Direction direction, @Nonnull List<Ref<EntityStore>> players, @Nonnull CommandBuffer<EntityStore> buffer, @Nonnull RandomGenerator random) -
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). -
asset
Returns the value of theassetrecord component.- Returns:
- the value of the
assetrecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
scaleMin
Returns the value of thescaleMinrecord component.- Returns:
- the value of the
scaleMinrecord component
-
scaleMax
Returns the value of thescaleMaxrecord component.- Returns:
- the value of the
scaleMaxrecord component
-
offset
@Nullable public org.joml.Vector3d offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
durationMin
Returns the value of thedurationMinrecord component.- Returns:
- the value of the
durationMinrecord component
-
durationMax
Returns the value of thedurationMaxrecord component.- Returns:
- the value of the
durationMaxrecord component
-