tutorial:containers
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorial:containers [2020/02/27 16:19] – [Orgnizing] typo mkpoli | tutorial:containers [2020/02/27 16:26] – use an alternate uncasting way mkpoli | ||
---|---|---|---|
Line 252: | Line 252: | ||
[...] | [...] | ||
ContainerProviderRegistry.INSTANCE.registerFactory(BIGGER_CHEST, | ContainerProviderRegistry.INSTANCE.registerFactory(BIGGER_CHEST, | ||
- | final BlockEntity blockEntity | + | final World world = player.world; |
- | return((BiggerChestBlockEntity) blockEntity).createContainer(syncId, player.inventory); | + | final BlockPos pos = buf.readBlockPos(); |
+ | return | ||
}); | }); | ||
} | } |
tutorial/containers.txt · Last modified: 2022/05/27 15:57 by solidblock