Package | Description |
---|---|
net.tridentsdk.base |
This package contains basic elements in Minecraft, such as blocks, orientation, directions, instruments, and sounds
|
net.tridentsdk.entity |
Other entities and general abstractions and types
|
net.tridentsdk.event.entity |
Entity-based events, called when an event relating to an entity occurs
|
net.tridentsdk.event.player |
Called when a player-based event occurs, such as an event that involves a player
|
net.tridentsdk.event.weather |
Called when a world event, such as weather, occurs.
|
net.tridentsdk.server.data |
Metadata and abstract writable implementations designed to serialize data for the protocol
|
net.tridentsdk.server.entity |
Contains general entity implementations and base abstractions
|
net.tridentsdk.server.entity.ai.pathfind |
The entity AI implementation
|
net.tridentsdk.server.entity.block |
Contains implementation for Entites that are similar to blocks, i.e.
|
net.tridentsdk.server.entity.living |
Contains implementations of entities which are sentient
|
net.tridentsdk.server.entity.projectile |
Contains classes that represents launchable entities
|
net.tridentsdk.server.entity.vehicle |
Contains classes that represent various vehicles
|
net.tridentsdk.server.packets.play.in |
Packets related to the gameplay on the server that are sent by the client
|
net.tridentsdk.server.packets.play.out |
Packets related to the gameplay of the server sent from the server
|
net.tridentsdk.server.player |
Contains implementations related to TridentPlayer and the associcated OfflinePlayer classes
|
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.util |
Utilities used primarily within the API and available to plugins and the implementation
|
net.tridentsdk.world |
World access: Chunks, dimensions, and loading, and world generation
|
Modifier and Type | Method and Description |
---|---|
Position |
Position.add(Vector vector)
Adds the x, y, and z from the vector to the coordinates of this position
|
Position |
BlockDirection.apply(Position loc)
Gets the position relative to the given direction
|
Position |
Position.clone() |
static Position |
Position.create(World world,
double x,
double y,
double z)
Wraps the point without specific yaw and pitch (set to 0)
|
static Position |
Position.create(World world,
double x,
double y,
double z,
float yaw,
float pitch)
References the point on the world as a position that wraps the coordinates
|
Position |
BlockSnapshot.position()
Obtains the position of the block
|
Position |
Block.position()
Returns the Location of the Block
|
Position |
Position.relative(Vector vector)
Acquires the relative position to this set of coordinates
|
Modifier and Type | Method and Description |
---|---|
Position |
BlockDirection.apply(Position loc)
Gets the position relative to the given direction
|
double |
Position.distance(Position position)
The distance this from position to another.
|
double |
Position.distanceSquared(Position position)
The distance squared from this position to another
|
static BlockSnapshot |
BlockSnapshot.from(Position position,
Substance substance,
byte data) |
Modifier and Type | Method and Description |
---|---|
Position |
LivingEntity.headLocation()
Returns the position of the Entity's eye
|
Position |
Entity.position()
The position of the entity with respect to the coordinate grid
|
Modifier and Type | Method and Description |
---|---|
void |
Entity.teleport(Position position)
Moves the entity to the coordinates specified by the position object passed in
|
Modifier and Type | Method and Description |
---|---|
Position |
EntitySpawnEvent.position() |
Constructor and Description |
---|
EntitySpawnEvent(Entity entity,
Position position) |
PlayerDropItemEvent(Entity item,
Position position,
Player player) |
Modifier and Type | Method and Description |
---|---|
Position |
PlayerMoveEvent.fromLocation()
Return previous position
|
Position |
PlayerMoveEvent.toLocation()
Return next position
|
Constructor and Description |
---|
PlayerMoveEvent(Player player,
Position from,
Position to) |
Modifier and Type | Method and Description |
---|---|
Position |
LightningStrikeEvent.position() |
Constructor and Description |
---|
LightningStrikeEvent(World world,
Position position) |
Modifier and Type | Method and Description |
---|---|
Position |
PositionWritable.location()
Gets the wrapped, original location
|
Modifier and Type | Method and Description |
---|---|
void |
PositionWritable.setLoc(Position loc)
Sets the wrapped position
|
Constructor and Description |
---|
PositionWritable(Position loc)
Creates a new position based from an existing location
|
Modifier and Type | Field and Description |
---|---|
protected Position |
TridentEntity.loc
The entity location
|
Modifier and Type | Method and Description |
---|---|
Position |
TridentLivingEntity.headLocation() |
Position |
TridentEntity.position() |
Modifier and Type | Method and Description |
---|---|
void |
TridentEntity.setPosition(Position loc) |
EntityBuilder |
EntityBuilder.spawn(Position spawn) |
void |
TridentEntity.teleport(Position location) |
void |
EntityHandler.trackMovement(Entity entity,
Position from,
Position to)
Tracks the movement of the entity, not for teleportation
|
Constructor and Description |
---|
TridentAgeable(UUID id,
Position spawnLocation) |
TridentBreedable(UUID id,
Position spawnLocation) |
TridentDroppedItem(Position spawnPosition,
Item item) |
TridentEntity(UUID uniqueId,
Position spawnLocation)
Creates a new entity
|
TridentExpOrb(UUID uuid,
Position spawnPosition) |
TridentFirework(UUID uuid,
Position spawnPosition) |
TridentInventoryHolder(UUID id,
Position spawnLocation)
Inherits constructor from
TridentLivingEntity |
TridentLivingEntity(UUID id,
Position spawnLocation)
Inherits from
TridentEntity |
TridentTameable(UUID id,
Position spawnLocation) |
Constructor and Description |
---|
Node(Node parent,
Position position) |
Pathfinder(Entity entity,
Position target,
double range) |
Constructor and Description |
---|
TridentArmorStand(UUID id,
Position spawnLocation,
SlotProperties properties) |
TridentFallingBlock(UUID id,
Position spawnLocation) |
TridentItemFrame(UUID id,
Position spawnLocation) |
TridentPainting(UUID uniqueId,
Position spawnLocation) |
TridentPrimeTNT(UUID id,
Position spawnLocation) |
Constructor and Description |
---|
TridentArrow(UUID uuid,
Position spawnPosition,
ProjectileLauncher projectileLauncher) |
TridentEgg(UUID uniqueId,
Position spawnLocation,
ProjectileLauncher source)
Inherits constructor from
TridentProjectile |
TridentEnderPearl(UUID uuid,
Position spawnPosition,
ProjectileLauncher projectileLauncher) |
TridentExpBottle(UUID uuid,
Position spawnPosition,
ProjectileLauncher projectileLauncher) |
TridentFireball(UUID uuid,
Position spawnPosition,
ProjectileLauncher projectileLauncher) |
TridentFishHook(UUID uuid,
Position spawnPosition,
ProjectileLauncher projectileLauncher) |
TridentPotion(UUID uuid,
Position spawnPosition,
ProjectileLauncher projectileLauncher) |
TridentProjectile(UUID uniqueId,
Position spawnLocation,
ProjectileLauncher source)
Inherits UUID and spawnPosition from
TridentEntity |
TridentSmallFireball(UUID uuid,
Position spawnPosition,
ProjectileLauncher projectileLauncher) |
TridentSnowball(UUID uniqueId,
Position spawnLocation,
ProjectileLauncher source)
Inherits from
TridentProjectile |
TridentWitherSkull(UUID uniqueId,
Position spawnLocation,
ProjectileLauncher source) |
Constructor and Description |
---|
TridentBoat(UUID uuid,
Position spawnPosition) |
TridentCmdMinecart(UUID uuid,
Position spawnPosition) |
TridentFurnaceMinecart(UUID uuid,
Position spawnPosition) |
TridentHopperMinecart(UUID uuid,
Position spawnPosition) |
TridentMinecart(UUID uuid,
Position spawnPosition) |
TridentSpawnerMinecart(UUID uuid,
Position spawnPosition) |
TridentTntMinecart(UUID uuid,
Position spawnPosition) |
Modifier and Type | Field and Description |
---|---|
protected Position |
PacketPlayInPlayerMove.location
Updated location, Y is the feet location
|
protected Position |
PacketPlayInEntityInteract.location
Location of the target, sent as 3 floats x, y, z
|
protected Position |
PacketPlayInBlockPlace.location
Location of the block being placed
|
protected Position |
PacketPlayInTabComplete.lookedAtBlock
PositionWritable of the block the player is looking at, only sent if hasPosition is true
|
protected Position |
PacketPlayInUpdateSign.signLocation
Location of the sign
|
Modifier and Type | Method and Description |
---|---|
Position |
PacketPlayInPlayerMove.location() |
Position |
PacketPlayInPlayerDig.location() |
Position |
PacketPlayInEntityInteract.location() |
Position |
PacketPlayInBlockPlace.location() |
Position |
PacketPlayInTabComplete.lookedAtBlock() |
Position |
PacketPlayInUpdateSign.signLocation() |
Modifier and Type | Field and Description |
---|---|
protected Position |
PacketPlayOutUseBed.bedHead |
protected Position |
PacketPlayOutUpdateSign.loc |
protected Position |
PacketPlayOutUpdateBlockEntity.loc |
protected Position |
PacketPlayOutSpawnGlobalEntity.loc |
protected Position |
PacketPlayOutSoundEffect.loc |
protected Position |
PacketPlayOutSignEditorOpen.loc |
protected Position |
PacketPlayOutParticle.loc |
protected Position |
PacketPlayOutExplosion.loc |
protected Position |
PacketPlayOutEffect.loc |
protected Position |
PacketPlayOutSpawnPosition.location |
protected Position |
PacketPlayOutSpawnPainting.location |
protected Position |
PacketPlayOutSpawnExperienceOrb.location |
protected Position |
PacketPlayOutPlayerCompleteMove.location |
protected Position |
PacketPlayOutEntityTeleport.location |
protected Position |
PacketPlayOutEntityLook.location |
protected Position |
PacketPlayOutBlockChange.location |
protected Position |
PacketPlayOutBlockBreakAnimation.location |
protected Position |
PacketPlayOutBlockAction.location |
Modifier and Type | Method and Description |
---|---|
Position |
PacketPlayOutUseBed.bedHead() |
Position |
PacketPlayOutUpdateSign.location() |
Position |
PacketPlayOutUpdateBlockEntity.location() |
Position |
PacketPlayOutSpawnPosition.location() |
Position |
PacketPlayOutSpawnPainting.location() |
Position |
PacketPlayOutSpawnGlobalEntity.location() |
Position |
PacketPlayOutSpawnExperienceOrb.location() |
Position |
PacketPlayOutSoundEffect.location() |
Position |
PacketPlayOutPlayerCompleteMove.location() |
Position |
PacketPlayOutParticle.location() |
Position |
PacketPlayOutExplosion.location() |
Position |
PacketPlayOutEntityTeleport.location() |
Position |
PacketPlayOutEntityLook.location() |
Position |
PacketPlayOutEffect.location() |
Position |
PacketPlayOutBlockChange.location() |
Position |
PacketPlayOutBlockBreakAnimation.location() |
Position |
PacketPlayOutBlockAction.location() |
Modifier and Type | Field and Description |
---|---|
protected Position |
OfflinePlayer.spawnPosition
The spawn location of the player
|
Modifier and Type | Method and Description |
---|---|
Position |
OfflinePlayer.spawnLocation() |
Modifier and Type | Method and Description |
---|---|
void |
TridentPlayer.setPosition(Position loc) |
Modifier and Type | Method and Description |
---|---|
Position |
TridentBlock.position() |
Position |
TridentWorld.spawnPosition() |
Modifier and Type | Method and Description |
---|---|
Block |
TridentWorld.blockAt(Position location) |
void |
TridentWorld.lightning(Position position,
boolean b) |
void |
TridentChunk.setAt(Position p,
Substance type,
byte metaData,
byte skyLight,
byte blockLight) |
Entity |
TridentWorld.spawn(EntityType type,
Position spawnPosition) |
Constructor and Description |
---|
TridentBlock(Position location)
Constructs the wrapper representing the block
|
TridentBlock(Position location,
Substance substance,
byte meta) |
Modifier and Type | Method and Description |
---|---|
void |
ThreadSafeChange.setBlock(Position coords,
int id) |
void |
DefaultMassChange.setBlock(Position coords,
int id) |
void |
ThreadSafeChange.setBlock(Position coords,
int id,
byte data) |
void |
DefaultMassChange.setBlock(Position coords,
int id,
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 |
---|---|
Position |
Vector.asLocation(World world)
Returns a new position in this world, with the coordinates the x, y, and z values
|
Modifier and Type | Method and Description |
---|---|
Position |
World.spawnPosition()
Gets the spawn position of the world
|
Modifier and Type | Method and Description |
---|---|
Block |
World.blockAt(Position position)
Gets the block on the given position
|
void |
World.lightning(Position location,
boolean isEffect)
Strikes lightning at the given location.
|
void |
MassChange.setBlock(Position coords,
int id)
Add a change to make at when this change is committed
|
void |
MassChange.setBlock(Position coords,
int id,
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
|
Entity |
World.spawn(EntityType type,
Position spawnPosition)
Spawns an entity in the world
|
Copyright © 2016. All rights reserved.