Record Class SimpleEntityData.SimpleEntityDataInfo
java.lang.Object
java.lang.Record
org.skriptlang.skript.bukkit.entity.data.SimpleEntityData.SimpleEntityDataInfo
- Enclosing class:
SimpleEntityData
public static record SimpleEntityData.SimpleEntityDataInfo(String name, Class<? extends org.bukkit.entity.Entity> entityClass, boolean isSuperType, Kleenean allowSpawning, @Nullable Function<ItemType,Boolean> itemTypeComparator, SimpleEntityData.SimpleEntityDataInfo @Nullable [] subTypes)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleEntityDataInfo(String name, Class<? extends org.bukkit.entity.Entity> entityClass, boolean isSuperType, Kleenean allowSpawning, @Nullable Function<ItemType, Boolean> itemTypeComparator, SimpleEntityData.SimpleEntityDataInfo @Nullable [] subTypes) Creates an instance of aSimpleEntityDataInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowSpawningrecord component.Class<? extends org.bukkit.entity.Entity> Returns the value of theentityClassrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisOfItemType(ItemType itemType) booleanReturns the value of theisSuperTyperecord component.Returns the value of theitemTypeComparatorrecord component.name()Returns the value of thenamerecord component.SimpleEntityData.SimpleEntityDataInfo @Nullable []subTypes()Returns the value of thesubTypesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SimpleEntityDataInfo
public SimpleEntityDataInfo(String name, Class<? extends org.bukkit.entity.Entity> entityClass, boolean isSuperType, Kleenean allowSpawning, @Nullable @Nullable Function<ItemType, Boolean> itemTypeComparator, SimpleEntityData.SimpleEntityDataInfo @Nullable [] subTypes) Creates an instance of aSimpleEntityDataInforecord class.- Parameters:
name- the value for thenamerecord componententityClass- the value for theentityClassrecord componentisSuperType- the value for theisSuperTyperecord componentallowSpawning- the value for theallowSpawningrecord componentitemTypeComparator- the value for theitemTypeComparatorrecord componentsubTypes- the value for thesubTypesrecord component
-
-
Method Details
-
isOfItemType
-
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. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
entityClass
Returns the value of theentityClassrecord component.- Returns:
- the value of the
entityClassrecord component
-
isSuperType
public boolean isSuperType()Returns the value of theisSuperTyperecord component.- Returns:
- the value of the
isSuperTyperecord component
-
allowSpawning
Returns the value of theallowSpawningrecord component.- Returns:
- the value of the
allowSpawningrecord component
-
itemTypeComparator
-
subTypes
Returns the value of thesubTypesrecord component.- Returns:
- the value of the
subTypesrecord component
-