split client and server 1
This commit is contained in:
parent
26a15a0b15
commit
2fa521c3d1
661 changed files with 3058 additions and 2826 deletions
|
@ -8,11 +8,12 @@ import game.init.Items;
|
|||
import game.item.Item;
|
||||
import game.item.ItemStack;
|
||||
import game.material.Material;
|
||||
import game.model.BlockLayer;
|
||||
import game.model.Model;
|
||||
import game.model.ModelProvider;
|
||||
import game.model.ModelRotation;
|
||||
import game.properties.IProperty;
|
||||
import game.properties.PropertyInteger;
|
||||
import game.renderer.BlockLayer;
|
||||
import game.renderer.blockmodel.ModelBlock;
|
||||
import game.rng.Random;
|
||||
import game.world.BlockPos;
|
||||
import game.world.BoundingBox;
|
||||
|
@ -230,11 +231,11 @@ public class BlockCocoa extends BlockDirectional implements IGrowable
|
|||
return new IProperty[] {FACING, AGE};
|
||||
}
|
||||
|
||||
public ModelBlock getModel(String name, State state) {
|
||||
ModelBlock model;
|
||||
public Model getModel(ModelProvider provider, String name, State state) {
|
||||
Model model;
|
||||
switch(state.getValue(AGE)) {
|
||||
case 0:
|
||||
model = new ModelBlock("cocoa_0").noOcclude()
|
||||
model = provider.getModel("cocoa_0").noOcclude()
|
||||
.add(6, 7, 11, 10, 12, 15)
|
||||
.d().uv(0, 0, 4, 4).noCull()
|
||||
.u().uv(0, 0, 4, 4).noCull()
|
||||
|
@ -247,7 +248,7 @@ public class BlockCocoa extends BlockDirectional implements IGrowable
|
|||
.e().uv(16, 0, 12, 4).noCull();
|
||||
break;
|
||||
case 1:
|
||||
model = new ModelBlock("cocoa_1").noOcclude()
|
||||
model = provider.getModel("cocoa_1").noOcclude()
|
||||
.add(5, 5, 9, 11, 12, 15)
|
||||
.d().uv(0, 0, 6, 6).noCull()
|
||||
.u().uv(0, 0, 6, 6).noCull()
|
||||
|
@ -261,7 +262,7 @@ public class BlockCocoa extends BlockDirectional implements IGrowable
|
|||
break;
|
||||
case 2:
|
||||
default:
|
||||
model = new ModelBlock("cocoa_2").noOcclude()
|
||||
model = provider.getModel("cocoa_2").noOcclude()
|
||||
.add(4, 3, 7, 12, 12, 15)
|
||||
.d().uv(0, 0, 7, 7).noCull()
|
||||
.u().uv(0, 0, 7, 7).noCull()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue