User Tools

Site Tools


tutorial:inventory

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
tutorial:inventory [2019/08/06 18:29] fudgetutorial:inventory [2019/08/06 18:34] fudge
Line 122: Line 122:
         return items;         return items;
     }     }
-    ...+    [...]
  
 } }
Line 131: Line 131:
 <code java> <code java>
 public class DemoBlockEntity extends BlockEntity implements ImplementedInventory { public class DemoBlockEntity extends BlockEntity implements ImplementedInventory {
-    ...+    [...]
     @Override     @Override
     public void fromTag(CompoundTag tag) {     public void fromTag(CompoundTag tag) {
Line 154: Line 154:
 <code java> <code java>
 public class ExampleBlock extends Block implements BlockEntityProvider { public class ExampleBlock extends Block implements BlockEntityProvider {
-    ...+    [...]
     @Override     @Override
     public boolean activate(BlockState blockState, World world, BlockPos blockPos, PlayerEntity player, Hand hand, BlockHitResult blockHitResult) {     public boolean activate(BlockState blockState, World world, BlockPos blockPos, PlayerEntity player, Hand hand, BlockHitResult blockHitResult) {
Line 187: Line 187:
 <code java> <code java>
 public class ExampleBlock extends Block implements BlockEntityProvider { public class ExampleBlock extends Block implements BlockEntityProvider {
-    ...+    [...]
     @Override     @Override
     public boolean activate(BlockState blockState, World world, BlockPos blockPos, PlayerEntity player, Hand hand, BlockHitResult blockHitResult) {     public boolean activate(BlockState blockState, World world, BlockPos blockPos, PlayerEntity player, Hand hand, BlockHitResult blockHitResult) {
Line 219: Line 219:
 <code java> <code java>
 public class DemoBlockEntity extends BlockEntity implements ImplementedInventory, SidedInventory { public class DemoBlockEntity extends BlockEntity implements ImplementedInventory, SidedInventory {
-    ...+    [...]
     @Override     @Override
     public int[] getInvAvailableSlots(Direction var1) {     public int[] getInvAvailableSlots(Direction var1) {
tutorial/inventory.txt · Last modified: 2023/11/06 23:28 by binaris00