User Tools

Site Tools


tutorial:blockstate

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
tutorial:blockstate [2019/11/14 11:53]
fudge
tutorial:blockstate [2019/12/15 22:55] (current)
b0undarybreaker re-yarn
Line 19: Line 19:
     [...]     [...]
     @Override     @Override
-    protected void appendProperties(StateFactory.Builder<​Block,​ BlockState> ​stateFactory) { +    protected void appendProperties(StateManager.Builder<​Block,​ BlockState> ​stateManager) { 
-        ​stateFactory.add(HARDENED);​+        ​stateManager.add(HARDENED);​
     }     }
     ​     ​
Line 31: Line 31:
     public MyBlock(Settings settings) {     public MyBlock(Settings settings) {
         super(settings);​         super(settings);​
-        setDefaultState(getStateFactory().getDefaultState().with(HARDENED,​ false));+        setDefaultState(getStateManager().getDefaultState().with(HARDENED,​ false));
     }     }
     ​     ​
tutorial/blockstate.txt · Last modified: 2019/12/15 22:55 by b0undarybreaker