|
| | VillagerFossilBlockEntity (BlockPos pos, BlockState state) |
| |
| void | readNbt (NbtCompound nbt) |
| |
| Text | getDisplayName () |
| |
| void | onClose (PlayerEntity player) |
| |
| ScreenHandler | createMenu (int syncId, PlayerInventory inv, PlayerEntity player) |
| |
| void | markDirty () |
| |
| | BlockEntityWithInventory (BlockEntityType<?> type, BlockPos pos, BlockState state, DefaultedList< ItemStack > inventory) |
| |
| DefaultedList< ItemStack > | getItems () |
| | Gets the item list of this inventory. More...
|
| |
| int[] | getAvailableSlots (Direction side) |
| | Gets the available slots to automation on the side. More...
|
| |
| boolean | canInsert (int slot, ItemStack stack, @Nullable Direction side) |
| | Returns true if the stack can be inserted in the slot at the side. More...
|
| |
| boolean | canExtract (int slot, ItemStack stack, Direction side) |
| | Returns true if the stack can be extracted from the slot at the side. More...
|
| |
| int | size () |
| | Returns the inventory size. More...
|
| |
| boolean | isEmpty () |
| |
| ItemStack | getStack (int slot) |
| | Gets the item in the slot. More...
|
| |
| ItemStack | removeStack (int slot, int count) |
| | Takes a stack of the size from the slot. More...
|
| |
| ItemStack | removeStack (int slot) |
| | Removes the current stack in the slot and returns it. More...
|
| |
| void | setStack (int slot, ItemStack stack) |
| | Replaces the current stack in the slot with the provided stack. More...
|
| |
| List< ItemStack > | getInventoryContents () |
| |
| void | setInventory (DefaultedList< ItemStack > inventory) |
| |
| void | clear () |
| | Clears the item list}. More...
|
| |
| void | markDirty () |
| |
| boolean | canPlayerUse (PlayerEntity player) |
| |
| void | transferDataToClients () |
| |
| void | transferDataToClients (PlayerEntity player) |
| |
| void | requestDataTransfer () |
| |