public class AdvancedFakeChestInventory extends AdvancedChestInventory
| Modifier and Type | Class and Description |
|---|---|
private static class |
AdvancedFakeChestInventory.FakeEntity |
| Modifier and Type | Field and Description |
|---|---|
private HashMap<String,List<cn.nukkit.math.BlockVector3>> |
blockPositions |
private static ConcurrentHashMap<cn.nukkit.Player,AdvancedInventory> |
OPEN |
containedResponseItem, GAME_CORE, superClickItemListener| Constructor and Description |
|---|
AdvancedFakeChestInventory(String title) |
| Modifier and Type | Method and Description |
|---|---|
protected cn.nukkit.network.protocol.UpdateBlockPacket |
getDefaultPack(int id,
cn.nukkit.math.BlockVector3 pos) |
protected static byte[] |
getNbt(cn.nukkit.math.BlockVector3 pos,
String name) |
void |
onClose(cn.nukkit.Player who) |
protected void |
onFakeOpen(cn.nukkit.Player who,
List<cn.nukkit.math.BlockVector3> blocks) |
void |
onOpen(cn.nukkit.Player who) |
protected List<cn.nukkit.math.BlockVector3> |
onOpenBlock(cn.nukkit.Player who) |
protected void |
placeFakeChest(cn.nukkit.Player who,
cn.nukkit.math.BlockVector3 pos) |
getBlockOwnercallClose, close, getOwner, onClose, onEvent, open, putItem, putItem, tryRemoveWindowaddItem, all, canAddItem, clear, clearAll, contains, decreaseCount, first, firstEmpty, getContents, getFreeSpace, getHolder, getItem, getMaxStackSize, getName, getSize, getTitle, getType, getViewers, isEmpty, isFull, onSlotChange, remove, removeItem, sendContents, sendContents, sendContents, sendSlot, sendSlot, sendSlot, setContents, setItem, setMaxStackSize, setSizeprivate static final ConcurrentHashMap<cn.nukkit.Player,AdvancedInventory> OPEN
public AdvancedFakeChestInventory(String title)
protected cn.nukkit.network.protocol.UpdateBlockPacket getDefaultPack(int id,
cn.nukkit.math.BlockVector3 pos)
public void onOpen(cn.nukkit.Player who)
onOpen in interface cn.nukkit.inventory.InventoryonOpen in class cn.nukkit.inventory.ContainerInventoryprotected void onFakeOpen(cn.nukkit.Player who,
List<cn.nukkit.math.BlockVector3> blocks)
protected List<cn.nukkit.math.BlockVector3> onOpenBlock(cn.nukkit.Player who)
protected void placeFakeChest(cn.nukkit.Player who,
cn.nukkit.math.BlockVector3 pos)
protected static byte[] getNbt(cn.nukkit.math.BlockVector3 pos,
String name)
public void onClose(cn.nukkit.Player who)
onClose in interface cn.nukkit.inventory.InventoryonClose in class cn.nukkit.inventory.ContainerInventoryCopyright © 2022. All rights reserved.