Package | Description |
---|---|
net.glowstone.entity.meta |
Modifier and Type | Field and Description |
---|---|
MetadataIndex |
MetadataMap.Entry.index |
Modifier and Type | Method and Description |
---|---|
static MetadataIndex |
MetadataIndex.getIndex(int index,
MetadataType type)
Returns the first
MetadataIndex with a given index and MetadataType . |
static MetadataIndex |
MetadataIndex.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetadataIndex[] |
MetadataIndex.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
boolean |
MetadataMap.containsKey(MetadataIndex index) |
Object |
MetadataMap.get(MetadataIndex index) |
boolean |
MetadataMap.getBit(MetadataIndex index,
int bit)
Tests for the given bit mask in a bit field.
|
boolean |
MetadataMap.getBoolean(MetadataIndex index) |
byte |
MetadataMap.getByte(MetadataIndex index) |
float |
MetadataMap.getFloat(MetadataIndex index) |
int |
MetadataMap.getInt(MetadataIndex index) |
org.bukkit.inventory.ItemStack |
MetadataMap.getItem(MetadataIndex index) |
Number |
MetadataMap.getNumber(MetadataIndex index)
Returns the numeric value of a metadata field.
|
org.bukkit.util.BlockVector |
MetadataMap.getOptPosition(MetadataIndex index)
Gets the optional position value for the given MetadataIndex.
|
String |
MetadataMap.getString(MetadataIndex index) |
void |
MetadataMap.set(MetadataIndex index,
Object value)
Sets the value of a metadata field.
|
void |
MetadataMap.set(MetadataIndex index,
Object value,
boolean force)
Sets the value of a metadata field.
|
void |
MetadataMap.setBit(MetadataIndex index,
int bit,
boolean status)
Sets or clears bits in a bit field.
|
Constructor and Description |
---|
Entry(MetadataIndex index,
Object value) |
Copyright © 2021. All rights reserved.