Package cn.nukkit.blockproperty
Class UnsignedIntBlockProperty
- All Implemented Interfaces:
Serializable
@PowerNukkitOnly
@Since("1.4.0.0-PN")
public class UnsignedIntBlockProperty
extends BlockProperty<Integer>
- See Also:
-
Constructor Summary
ConstructorDescriptionUnsignedIntBlockProperty
(String name, boolean exportedToItem, int maxValue) UnsignedIntBlockProperty
(String name, boolean exportedToItem, int maxValue, int minValue) UnsignedIntBlockProperty
(String name, boolean exportedToItem, int maxValue, int minValue, int bitSize) UnsignedIntBlockProperty
(String name, boolean exportedToItem, int maxValue, int minValue, int bitSize, String persistenceName) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
exportingToItems
(boolean exportedToItem) int
int
getIntValueForMeta
(int meta) long
int
getMetaForPersistenceValue
(String persistenceValue) int
getMetaForValue
(Integer value) long
getPersistenceValueForMeta
(int meta) getValueForMeta
(int meta) boolean
isDefaultIntValue
(int value) boolean
isDefaultValue
(Integer value) protected void
validateDirectly
(Integer value) protected void
validateMetaDirectly
(int meta) Methods inherited from class cn.nukkit.blockproperty.BlockProperty
getBitSize, getDefaultBooleanValue, getIntValue, getIntValue, getIntValue, getMetaFromBigInt, getMetaFromInt, getMetaFromLong, getName, getPersistenceName, getPersistenceValue, getPersistenceValue, getPersistenceValue, getValue, getValue, getValue, isDefaultBooleanValue, isDefaultPersistentValue, isExportedToItem, setValue, setValue, setValue, toString, validateMeta, validateMeta, validateMeta
-
Constructor Details
-
UnsignedIntBlockProperty
@PowerNukkitOnly @Since("1.4.0.0-PN") public UnsignedIntBlockProperty(String name, boolean exportedToItem, int maxValue, int minValue, int bitSize, String persistenceName) -
UnsignedIntBlockProperty
@PowerNukkitOnly @Since("1.4.0.0-PN") public UnsignedIntBlockProperty(String name, boolean exportedToItem, int maxValue, int minValue, int bitSize) -
UnsignedIntBlockProperty
@PowerNukkitOnly @Since("1.4.0.0-PN") public UnsignedIntBlockProperty(String name, boolean exportedToItem, int maxValue, int minValue) -
UnsignedIntBlockProperty
@PowerNukkitOnly @Since("1.4.0.0-PN") public UnsignedIntBlockProperty(String name, boolean exportedToItem, int maxValue)
-
-
Method Details
-
copy
- Specified by:
copy
in classBlockProperty<Integer>
-
exportingToItems
@Since("1.4.0.0-PN") @PowerNukkitOnly public UnsignedIntBlockProperty exportingToItems(boolean exportedToItem) - Specified by:
exportingToItems
in classBlockProperty<Integer>
-
getMetaForValue
- Specified by:
getMetaForValue
in classBlockProperty<Integer>
-
getValueForMeta
- Specified by:
getValueForMeta
in classBlockProperty<Integer>
-
getIntValueForMeta
- Specified by:
getIntValueForMeta
in classBlockProperty<Integer>
-
getPersistenceValueForMeta
- Specified by:
getPersistenceValueForMeta
in classBlockProperty<Integer>
-
getMetaForPersistenceValue
@Since("1.4.0.0-PN") @PowerNukkitOnly public int getMetaForPersistenceValue(@Nonnull String persistenceValue) - Specified by:
getMetaForPersistenceValue
in classBlockProperty<Integer>
-
validateDirectly
- Overrides:
validateDirectly
in classBlockProperty<Integer>
-
validateMetaDirectly
- Specified by:
validateMetaDirectly
in classBlockProperty<Integer>
-
getValueClass
- Specified by:
getValueClass
in classBlockProperty<Integer>
-
getMaxValue
-
getMinValue
-
getDefaultValue
- Specified by:
getDefaultValue
in classBlockProperty<Integer>
-
isDefaultValue
- Specified by:
isDefaultValue
in classBlockProperty<Integer>
-
isDefaultIntValue
- Overrides:
isDefaultIntValue
in classBlockProperty<Integer>
-
getDefaultIntValue
- Overrides:
getDefaultIntValue
in classBlockProperty<Integer>
-