User Tools

Site Tools


tutorial:propertydelegates

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:propertydelegates [2020/08/14 17:15] – [Showing the Information with the Screen] manymoney2tutorial:propertydelegates [2020/08/14 17:18] – [Showing the Information with the Screen] manymoney2
Line 169: Line 169:
  
 </code> </code>
 +
 +====== Result ======
 +As the registration of the ScreenHandler is identical to the first tutorial we can see the result already!
 +When the BlockEntity is placed it will increase the syncedInt by one each tick, when we look inside the container the integer will
 +automatically be synced to the client and rendered in the top left corner.
 +
 +
 +
 +If you want a more realistic example, you might want to have a look at AbstractFurnaceEntity and AbstractFurnaceScreenHandler in the minecraft code.
  
  
tutorial/propertydelegates.txt · Last modified: 2022/05/27 16:00 by solidblock