public abstract class TridentInventoryHolder extends TridentLivingEntity implements WindowHolder
| Modifier and Type | Field and Description |
|---|---|
protected TridentInventory |
inventory |
attributes, canPickup, dead, health, invincibilityTicks, maxHealth, restTicksairTicks, 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, showapplyProperties, 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, worldclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyProperties, boundingBox, displayName, eject, entityId, isNameVisible, isSilent, onGround, passenger, position, remove, setDisplayName, setPassenger, setSize, setVelocity, teleport, teleport, teleport, type, uniqueId, velocity, withinRange, worlddisplayName, lastDamageEvent, lastPlayerDamagerprotected volatile TridentInventory inventory
public TridentInventoryHolder(UUID id, Position spawnLocation)
TridentLivingEntitypublic TridentInventory window()
WindowHolderwindow in interface WindowHolderpublic Item heldItem()
WindowHolderheldItem in interface WindowHolderpublic void setHeldItem(Item item)
WindowHoldersetHeldItem in interface WindowHolderitem - the item to setpublic void setSelectedSlot(int selectedSlot)
public void load(CompoundTag tag)
load in class TridentLivingEntitypublic int selectedSlot()
Copyright © 2016. All rights reserved.