public class TridentMinecart extends TridentEntity implements MinecartBase
airTicks, boundingBox, counter, displayName, executor, fallDistance, fireTicks, godMode, HANDLER, height, id, loc, nameVisible, onGround, passenger, portalCooldown, silent, ticksExisted, uniqueId, velocity, width
Constructor and Description |
---|
TridentMinecart(UUID uuid,
Position spawnPosition) |
Modifier and Type | Method and Description |
---|---|
BlockSnapshot |
displayTitle()
Represents this Minecart's display tile, in the form of a BlockState
|
String |
name()
Gets the custom name of this Minecart
|
void |
setDisplayTile(BlockSnapshot blockState)
Set this Minecart's display tile to the specified block state
|
void |
setDisplayTileOffset(int offset)
Set the offset for this Minecart's display tile
|
void |
setName(String name)
Sets the custom name of this Minecart
|
int |
titleOffset()
Get the offset for this Minecart's display tile
|
EntityType |
type()
Gets the type of entity
|
applyProperties, asNbt, boundingBox, displayName, doEncodeMeta, doLoad, doRemove, doTick, eject, encodeMetadata, entityId, isNameVisible, isSilent, load, onGround, passenger, position, remove, setDisplayName, setOnGround, setPassenger, setPosition, setSize, setVelocity, spawn, teleport, teleport, teleport, tick, uniqueId, velocity, withinRange, world
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyProperties, boundingBox, displayName, eject, entityId, isNameVisible, isSilent, onGround, passenger, position, remove, setDisplayName, setPassenger, setSize, setVelocity, teleport, teleport, teleport, uniqueId, velocity, withinRange, world
public TridentMinecart(UUID uuid, Position spawnPosition)
public BlockSnapshot displayTitle()
MinecartBase
displayTitle
in interface MinecartBase
public void setDisplayTile(BlockSnapshot blockState)
MinecartBase
setDisplayTile
in interface MinecartBase
blockState
- the state to set this topublic int titleOffset()
MinecartBase
titleOffset
in interface MinecartBase
public void setDisplayTileOffset(int offset)
MinecartBase
setDisplayTileOffset
in interface MinecartBase
offset
- the offset to setpublic String name()
MinecartBase
name
in interface MinecartBase
public void setName(String name)
MinecartBase
setName
in interface MinecartBase
name
- the new value of the custom namepublic EntityType type()
Entity
type
in interface Entity
type
in class TridentEntity
Copyright © 2016. All rights reserved.