Package | Description |
---|---|
net.tridentsdk.meta.block |
Block metadata components
|
net.tridentsdk.meta.component |
Classes in the Trident metadata component framework
|
net.tridentsdk.server.data |
Metadata and abstract writable implementations designed to serialize data for the protocol
|
net.tridentsdk.server.data.block |
Contains block meta implementations
|
Modifier and Type | Interface and Description |
---|---|
interface |
BlockMeta<T>
Represents a
Meta object which is possessed by blocks |
interface |
CauldronMeta
MetaData contained in a Cauldron.
|
interface |
ChestMeta
TODO Write Description
|
interface |
ColorMeta
Represents metadata belonging to blocks of wool
|
interface |
DirectionMeta
Represents the metadata of a block that has a direction
|
interface |
FurnaceMeta
TODO Write Description
|
interface |
SignMeta
Represents metadata held by a sign
|
Modifier and Type | Method and Description |
---|---|
Meta<T> |
BlockMeta.decode(T instance,
float yaw,
byte direction,
byte cx,
byte cy,
byte cz,
short damageValue)
Decodes the block meta
|
default Meta<T> |
BlockMeta.decodeMeta(T instance,
byte[] data)
In BlockMeta, the data always has 8 elements laid out like so:
0-1: Player yaw * 10
2: Block direction
3: Cursor x
4: Cursor y
5: Cursor z
6-7: item damage
|
Modifier and Type | Interface and Description |
---|---|
interface |
IllegalMeta<T>
Provides a marker class which represents an illegal type metadata
|
Modifier and Type | Method and Description |
---|---|
<T extends Meta<S>> |
MetaCollection.contains(Class<T> cls)
Obtains whether a mapping of the type provided exists within the collection
|
<T extends Meta<S>> |
ImmutableMetaCollection.contains(Class<T> cls) |
<T extends Meta<S>> |
MetaCollection.get(Class<T> cls)
Obtains the metadata value from the component type specified
|
<T extends Meta<S>> |
ImmutableMetaCollection.get(Class<T> cls) |
static <S,T extends Meta<S>> |
MetaFactory.newValue(Class<T> type)
Obtains a new instance of a meta value
|
<S,T extends Meta<S>> |
MetaProvider.provide(Class<T> cls)
Obtains a new instance of a meta value
|
<T extends Meta<S>> |
MetaCollection.put(Class<T> cls,
T meta)
Puts a mapping of a meta class and the meta value into the collection, replacing the existing
value if necessary
|
<T extends Meta<S>> |
ImmutableMetaCollection.put(Class<T> cls,
T meta) |
<T extends Meta<S>> |
MetaCollection.put(T meta)
Puts the meta value into the collection, inferring the type
|
<T extends Meta<S>> |
ImmutableMetaCollection.put(T meta) |
<T extends Meta<S>> |
MetaCollection.putIfAbsent(Class<T> cls,
T meta)
Appends the meta mapping only if it does not already exist as defined by
MetaCollection.contains(Class) . |
<T extends Meta<S>> |
ImmutableMetaCollection.putIfAbsent(Class<T> cls,
T meta) |
<T extends Meta<S>> |
MetaCollection.putIfAbsent(T meta)
Puts the meta value into the collection if it does not exist as defined by
MetaCollection.contains(Class) |
<T extends Meta<S>> |
ImmutableMetaCollection.putIfAbsent(T meta) |
<T extends Meta<S>> |
MetaCollection.remove(Class<T> cls)
Removes the meta tag from this collection
|
<T extends Meta<S>> |
ImmutableMetaCollection.remove(Class<T> cls) |
Modifier and Type | Method and Description |
---|---|
Meta<T> |
Meta.decodeMeta(T instance,
byte[] data)
Creates a new meta value containing the decoded data provided
|
default Meta<T> |
IllegalMeta.decodeMeta(T instance,
byte[] data) |
Meta<T> |
Meta.make()
Make a new instance of this meta object
|
default Meta<T> |
IllegalMeta.make() |
Modifier and Type | Method and Description |
---|---|
void |
MetaProvider.register(Meta meta)
Puts the meta value into the server meta registry
|
static void |
MetaFactory.register(Meta meta)
Registers the meta value into the server meta registry
|
Modifier and Type | Method and Description |
---|---|
void |
MetaCollection.iterate(java.util.function.Consumer<Map.Entry<Class<? extends Meta<S>>,Meta<S>>> consumer)
Iterates the collection
|
void |
MetaCollection.iterate(java.util.function.Consumer<Map.Entry<Class<? extends Meta<S>>,Meta<S>>> consumer)
Iterates the collection
|
void |
ImmutableMetaCollection.iterate(java.util.function.Consumer<Map.Entry<Class<? extends Meta<S>>,Meta<S>>> consumer) |
void |
ImmutableMetaCollection.iterate(java.util.function.Consumer<Map.Entry<Class<? extends Meta<S>>,Meta<S>>> consumer) |
Modifier and Type | Method and Description |
---|---|
<S,T extends Meta<S>> |
MetaProviderFactory.provide(Class<T> cls) |
Modifier and Type | Method and Description |
---|---|
void |
MetaProviderFactory.register(Meta meta) |
Modifier and Type | Class and Description |
---|---|
class |
CauldronMetaImpl
Implementation of the Cauldron Meta.
|
class |
ChestMetaImpl |
class |
ColorMetaImpl
Represents data held by a wool block
|
class |
DirectionMetaImpl
Represents a block direction
|
class |
FurnaceMetaImpl |
class |
SignMetaImpl
Implements sign meta
|
Modifier and Type | Method and Description |
---|---|
Meta<Block> |
SignMetaImpl.decode(Block instance,
float yaw,
byte direction,
byte cx,
byte cy,
byte cz,
short damageValue) |
Meta<Block> |
FurnaceMetaImpl.decode(Block instance,
float yaw,
byte direction,
byte cx,
byte cy,
byte cz,
short damageValue) |
Meta<Block> |
DirectionMetaImpl.decode(Block instance,
float yaw,
byte direction,
byte cx,
byte cy,
byte cz,
short damageValue) |
Meta<Block> |
ColorMetaImpl.decode(Block instance,
float yaw,
byte direction,
byte cx,
byte cy,
byte cz,
short damageValue) |
Meta<Block> |
ChestMetaImpl.decode(Block instance,
float yaw,
byte direction,
byte cx,
byte cy,
byte cz,
short damageValue) |
Meta<Block> |
CauldronMetaImpl.decode(Block instance,
float yaw,
byte direction,
byte cx,
byte cy,
byte cz,
short damageValue) |
Meta<Block> |
SignMetaImpl.make() |
Meta<Block> |
FurnaceMetaImpl.make() |
Meta<Block> |
DirectionMetaImpl.make() |
Meta<Block> |
ColorMetaImpl.make() |
Meta<Block> |
ChestMetaImpl.make() |
Meta<Block> |
CauldronMetaImpl.make() |
Copyright © 2016. All rights reserved.