split client and server 1
This commit is contained in:
parent
26a15a0b15
commit
2fa521c3d1
661 changed files with 3058 additions and 2826 deletions
|
@ -8,10 +8,11 @@ import game.item.CheatTab;
|
|||
import game.item.Item;
|
||||
import game.item.ItemStack;
|
||||
import game.material.Material;
|
||||
import game.model.Model;
|
||||
import game.model.ModelProvider;
|
||||
import game.model.Transforms;
|
||||
import game.properties.IProperty;
|
||||
import game.properties.PropertyInteger;
|
||||
import game.renderer.blockmodel.ModelBlock;
|
||||
import game.renderer.blockmodel.Transforms;
|
||||
import game.rng.Random;
|
||||
import game.tileentity.TileEntity;
|
||||
import game.world.BlockPos;
|
||||
|
@ -181,9 +182,9 @@ public class BlockSnow extends Block
|
|||
return Transforms.LAYER;
|
||||
}
|
||||
|
||||
public ModelBlock getModel(String name, State state) {
|
||||
public Model getModel(ModelProvider provider, String name, State state) {
|
||||
int height = state.getValue(LAYERS) * 2;
|
||||
return height == 16 ? new ModelBlock("snow").add().all() :
|
||||
new ModelBlock("snow").add(0, 0, 0, 16, height, 16).u().noCull().d().nswe().uv(0, 16 - height, 16, 16);
|
||||
return height == 16 ? provider.getModel("snow").add().all() :
|
||||
provider.getModel("snow").add(0, 0, 0, 16, height, 16).u().noCull().d().nswe().uv(0, 16 - height, 16, 16);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue