public class TridentHopperMinecart extends TridentMinecart implements HopperMinecart
airTicks, boundingBox, counter, displayName, executor, fallDistance, fireTicks, godMode, HANDLER, height, id, loc, nameVisible, onGround, passenger, portalCooldown, silent, ticksExisted, uniqueId, velocity, width
Constructor and Description |
---|
TridentHopperMinecart(UUID uuid,
Position spawnPosition) |
Modifier and Type | Method and Description |
---|---|
Item |
heldItem()
Returns the ItemStack in the Player's hand
|
void |
setHeldItem(Item item)
Sets the item held in the selected slot
|
void |
setTransferCooldown(int cooldown)
Sets the transfer cooldown of this Hopper Minecart
|
int |
transferCooldown()
Gets the transfer cooldown of this Hopper Minecart
|
EntityType |
type()
Gets the type of entity
|
Inventory |
window()
The Inventory that this entity holds
|
displayTitle, name, setDisplayTile, setDisplayTileOffset, setName, titleOffset
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
displayTitle, name, setDisplayTile, setDisplayTileOffset, setName, titleOffset
applyProperties, boundingBox, displayName, eject, entityId, isNameVisible, isSilent, onGround, passenger, position, remove, setDisplayName, setPassenger, setSize, setVelocity, teleport, teleport, teleport, uniqueId, velocity, withinRange, world
public TridentHopperMinecart(UUID uuid, Position spawnPosition)
public int transferCooldown()
HopperMinecart
transferCooldown
in interface HopperMinecart
public void setTransferCooldown(int cooldown)
HopperMinecart
setTransferCooldown
in interface HopperMinecart
public Inventory window()
WindowHolder
window
in interface WindowHolder
public Item heldItem()
WindowHolder
heldItem
in interface WindowHolder
public void setHeldItem(Item item)
WindowHolder
setHeldItem
in interface WindowHolder
item
- the item to setpublic EntityType type()
Entity
type
in interface Entity
type
in class TridentMinecart
Copyright © 2016. All rights reserved.