Package | Description |
---|---|
net.tridentsdk.base |
This package contains basic elements in Minecraft, such as blocks, orientation, directions, instruments, and sounds
|
net.tridentsdk.event.block |
Block-based events, called when a block is affected in an event
|
net.tridentsdk.inventory |
Inventory and windows such as crafting, enchanting, trading access
|
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
|
net.tridentsdk.server.world |
Implements classes in the package
net.tridentsdk.world .* package |
net.tridentsdk.server.world.change |
Used in conjunction with
MassChange |
net.tridentsdk.world |
World access: Chunks, dimensions, and loading, and world generation
|
net.tridentsdk.world.gen |
World generation API, used to set block positions for the chunk
|
Modifier and Type | Method and Description |
---|---|
static Substance |
Substance.fromId(int id)
Returns the substance that associated with a given id
|
static Substance |
Substance.fromStringId(String id)
Matches a Material from a String
|
Substance |
Block.substance()
Gets the substance the tile is made of
|
Substance |
BlockSnapshot.type()
Obtains the block substance
|
static Substance |
Substance.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Substance[] |
Substance.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static BlockSnapshot |
BlockSnapshot.from(Position position,
Substance substance,
byte data) |
void |
Block.setSubstance(Substance substance)
Sets the substance the tile is made of
|
void |
Block.setSubstanceAndMeta(Substance substance,
byte data)
Sets the substance the tile is made of and its tile data
|
Modifier and Type | Method and Description |
---|---|
Substance |
BlockPlaceEvent.typePlaced()
Get the Material of the placed block
|
Modifier and Type | Method and Description |
---|---|
Substance |
Item.type() |
Constructor and Description |
---|
Item(Substance substance)
Creates a new item with the specified substance and quantity 1, 0 data
|
Item(Substance substance,
int quantity,
short durability,
short damageValue)
Creates a new item with the specified properties
|
Modifier and Type | Method and Description |
---|---|
Substance[] |
Meta.applyTo(MetaCollection collection)
Invoked to register the meta tag
|
default Substance[] |
IllegalMeta.applyTo(MetaCollection collection) |
Modifier and Type | Method and Description |
---|---|
boolean |
MetaProvider.decode(Block block,
Value<Substance> substance,
byte[] data,
Value<Byte> result)
Decodes and applies the byte data to the block as specified in
BlockMeta.decodeMeta(Object, byte[]) |
static boolean |
MetaFactory.decode(Block block,
Value<Substance> substance,
byte[] data,
Value<Byte> result) |
Modifier and Type | Field and Description |
---|---|
protected Substance |
Slot.mat |
Modifier and Type | Method and Description |
---|---|
Substance |
Slot.type()
Gets the type of the current item in the slot
|
Modifier and Type | Method and Description |
---|---|
boolean |
MetaProviderFactory.hasData(Substance substance) |
Modifier and Type | Method and Description |
---|---|
boolean |
MetaProviderFactory.decode(Block block,
Value<Substance> substance,
byte[] data,
Value<Byte> result) |
Modifier and Type | Method and Description |
---|---|
Substance[] |
SignMetaImpl.applyTo(MetaCollection collection) |
Substance[] |
FurnaceMetaImpl.applyTo(MetaCollection collection) |
Substance[] |
DirectionMetaImpl.applyTo(MetaCollection collection) |
Substance[] |
ColorMetaImpl.applyTo(MetaCollection collection) |
Substance[] |
ChestMetaImpl.applyTo(MetaCollection collection) |
Substance[] |
CauldronMetaImpl.applyTo(MetaCollection collection) |
Modifier and Type | Field and Description |
---|---|
protected Substance |
TridentBlock.material
The type for this block
|
Modifier and Type | Method and Description |
---|---|
Substance |
TridentBlock.substance() |
Modifier and Type | Method and Description |
---|---|
void |
TridentChunk.setAt(int x,
int y,
int z,
Substance type,
byte metaData,
byte skyLight,
byte blockLight) |
void |
TridentChunk.setAt(Position p,
Substance type,
byte metaData,
byte skyLight,
byte blockLight) |
void |
TridentBlock.setSubstance(Substance substance) |
void |
TridentBlock.setSubstanceAndMeta(Substance substance,
byte data) |
Constructor and Description |
---|
TridentBlock(Position location,
Substance substance,
byte meta) |
Modifier and Type | Method and Description |
---|---|
void |
ThreadSafeChange.setBlock(int x,
int y,
int z,
Substance substance) |
void |
DefaultMassChange.setBlock(int x,
int y,
int z,
Substance substance) |
void |
ThreadSafeChange.setBlock(int x,
int y,
int z,
Substance substance,
byte data) |
void |
DefaultMassChange.setBlock(int x,
int y,
int z,
Substance substance,
byte data) |
void |
ThreadSafeChange.setBlock(Position coords,
Substance substance) |
void |
DefaultMassChange.setBlock(Position coords,
Substance substance) |
void |
ThreadSafeChange.setBlock(Position coords,
Substance substance,
byte data) |
void |
DefaultMassChange.setBlock(Position coords,
Substance substance,
byte data) |
Modifier and Type | Method and Description |
---|---|
void |
MassChange.setBlock(int x,
int y,
int z,
Substance substance)
Add a change to make at when this change is committed
|
void |
MassChange.setBlock(int x,
int y,
int z,
Substance substance,
byte data)
Add a change to make at when this change is committed
|
void |
MassChange.setBlock(Position coords,
Substance substance)
Add a change to make at when this change is committed
|
void |
MassChange.setBlock(Position coords,
Substance substance,
byte data)
Add a change to make at when this change is committed
|
Modifier and Type | Method and Description |
---|---|
void |
FeatureGenerator.ChunkManipulator.manipulate(int relX,
int y,
int relZ,
Substance substance,
byte data)
Manipulates the chunk
|
Copyright © 2016. All rights reserved.