public abstract class TridentInventoryHolder extends TridentLivingEntity implements WindowHolder
Modifier and Type | Field and Description |
---|---|
protected TridentInventory |
inventory |
attributes, canPickup, dead, health, invincibilityTicks, maxHealth, restTicks
airTicks, boundingBox, counter, displayName, executor, fallDistance, fireTicks, godMode, HANDLER, height, id, loc, nameVisible, onGround, passenger, portalCooldown, silent, ticksExisted, uniqueId, velocity, width
Constructor and Description |
---|
TridentInventoryHolder(UUID id,
Position spawnLocation)
Inherits constructor from
TridentLivingEntity |
Modifier and Type | Method and Description |
---|---|
Item |
heldItem()
Returns the ItemStack in the Player's hand
|
void |
load(CompoundTag tag) |
int |
selectedSlot() |
void |
setHeldItem(Item item)
Sets the item held in the selected slot
|
void |
setSelectedSlot(int selectedSlot) |
TridentInventory |
window()
The Inventory that this entity holds
|
aiHandler, aiModule, canCollectItems, createStatusEffect, doTick, encodeMetadata, headLocation, health, hide, isDead, launchProjectile, maxHealth, path, performAiUpdate, remainingAir, remove, setAiModule, setHealth, setMaxHealth, setPath, setRemainingAir, show
applyProperties, asNbt, boundingBox, displayName, doEncodeMeta, doLoad, doRemove, eject, entityId, isNameVisible, isSilent, onGround, passenger, position, setDisplayName, setOnGround, setPassenger, setPosition, setSize, setVelocity, spawn, teleport, teleport, teleport, tick, type, 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, type, uniqueId, velocity, withinRange, world
displayName, lastDamageEvent, lastPlayerDamager
protected volatile TridentInventory inventory
public TridentInventoryHolder(UUID id, Position spawnLocation)
TridentLivingEntity
public TridentInventory 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 void setSelectedSlot(int selectedSlot)
public void load(CompoundTag tag)
load
in class TridentLivingEntity
public int selectedSlot()
Copyright © 2016. All rights reserved.