Package org.cube.converter.data.bedrock
Record Class BedrockEntityData.Scripts
java.lang.Object
java.lang.Record
org.cube.converter.data.bedrock.BedrockEntityData.Scripts
- Enclosing class:
- BedrockEntityData
public static record BedrockEntityData.Scripts(List<String> initialize, List<String> pre_animation, BedrockEntityData.Scripts.Scale scale, List<BedrockEntityData.Scripts.Animate> animates)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionScripts(List<String> initialize, List<String> pre_animation, BedrockEntityData.Scripts.Scale scale, List<BedrockEntityData.Scripts.Animate> animates) Creates an instance of aScriptsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionanimates()Returns the value of theanimatesrecord component.static BedrockEntityData.Scriptsfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinitializerecord component.static BedrockEntityData.Scriptsparse(com.viaversion.viaversion.libs.gson.JsonObject object) Returns the value of thepre_animationrecord component.scale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Scripts
public Scripts(List<String> initialize, List<String> pre_animation, BedrockEntityData.Scripts.Scale scale, List<BedrockEntityData.Scripts.Animate> animates) Creates an instance of aScriptsrecord class.- Parameters:
initialize- the value for theinitializerecord componentpre_animation- the value for thepre_animationrecord componentscale- the value for thescalerecord componentanimates- the value for theanimatesrecord component
-
-
Method Details
-
parse
public static BedrockEntityData.Scripts parse(com.viaversion.viaversion.libs.gson.JsonObject object) -
emptyScript
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
initialize
Returns the value of theinitializerecord component.- Returns:
- the value of the
initializerecord component
-
pre_animation
Returns the value of thepre_animationrecord component.- Returns:
- the value of the
pre_animationrecord component
-
scale
Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
animates
Returns the value of theanimatesrecord component.- Returns:
- the value of the
animatesrecord component
-