Interface IAspectProperties
- All Superinterfaces:
org.cyclops.cyclopscore.persist.nbt.INBTSerializable
- All Known Implementing Classes:
AspectProperties
public interface IAspectProperties
extends org.cyclops.cyclopscore.persist.nbt.INBTSerializable
A property that can be used inside aspects.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cyclops.cyclopscore.persist.nbt.INBTSerializable
org.cyclops.cyclopscore.persist.nbt.INBTSerializable.SelfNBTClassType
-
Method Summary
Modifier and TypeMethodDescriptionclone()
getTypes()
Deprecated.<T extends IValueType<V>,
V extends IValue>
VgetValue
(IAspectPropertyTypeInstance<T, V> type) Get the value of the given type.<T extends IValueType<V>,
V extends IValue>
voidremoveValue
(IAspectPropertyTypeInstance<T, V> type) Remove the value of the given type.<T extends IValueType<V>,
V extends IValue>
voidsetValue
(IAspectPropertyTypeInstance<T, V> type, V value) Set the value for the given type.Methods inherited from interface org.cyclops.cyclopscore.persist.nbt.INBTSerializable
fromNBT, toNBT
-
Method Details
-
getTypes
Deprecated.Use this with caution! Better to useIAspect.getPropertyTypes()
instead because this object might hold deprecated elements.- Returns:
- The types.
-
getValue
Get the value of the given type.- Type Parameters:
T
- The value type type.V
- The value type.- Parameters:
type
- The type to get the value from.- Returns:
- The value.
-
setValue
<T extends IValueType<V>,V extends IValue> void setValue(IAspectPropertyTypeInstance<T, V> type, V value) Set the value for the given type.- Type Parameters:
T
- The value type type.V
- The value type.- Parameters:
type
- The type to get the value from.value
- The value.
-
removeValue
Remove the value of the given type.- Type Parameters:
T
- The value type type.V
- The value type.- Parameters:
type
- The type to get the value from.
-
clone
IAspectProperties clone()- Returns:
- A deep copy of the properties.
-
IAspect.getPropertyTypes()
.