本文整理汇总了Java中net.minecraft.client.model.ModelBoat类的典型用法代码示例。如果您正苦于以下问题:Java ModelBoat类的具体用法?Java ModelBoat怎么用?Java ModelBoat使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ModelBoat类属于net.minecraft.client.model包,在下文中一共展示了ModelBoat类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getModelRenderer
import net.minecraft.client.model.ModelBoat; //导入依赖的package包/类
public ModelRenderer getModelRenderer(ModelBase model, String modelPart)
{
if (!(model instanceof ModelBoat))
{
return null;
}
else
{
ModelBoat modelboat = (ModelBoat)model;
return modelPart.equals("bottom") ? modelboat.boatSides[0] : (modelPart.equals("back") ? modelboat.boatSides[1] : (modelPart.equals("front") ? modelboat.boatSides[2] : (modelPart.equals("right") ? modelboat.boatSides[3] : (modelPart.equals("left") ? modelboat.boatSides[4] : (modelPart.equals("paddle_left") ? modelboat.paddles[0] : (modelPart.equals("paddle_right") ? modelboat.paddles[1] : (modelPart.equals("bottom_no_water") ? modelboat.noWater : null)))))));
}
}
示例2: getBoatModel
import net.minecraft.client.model.ModelBoat; //导入依赖的package包/类
private ModelBase getBoatModel() {
if (boatType == 0 || boatType == 3) {
return new ModelBoat();
} else {
return new ModelDoubleBoat();
}
}
示例3: makeModel
import net.minecraft.client.model.ModelBoat; //导入依赖的package包/类
public ModelBase makeModel()
{
return new ModelBoat();
}
示例4: RenderBoat
import net.minecraft.client.model.ModelBoat; //导入依赖的package包/类
public RenderBoat()
{
this.shadowSize = 0.5F;
this.modelBoat = new ModelBoat();
}
示例5: RenderBoat
import net.minecraft.client.model.ModelBoat; //导入依赖的package包/类
public RenderBoat() {
this.field_76989_e = 0.5F;
this.field_76998_a = new ModelBoat();
}
示例6: RenderRasterBike
import net.minecraft.client.model.ModelBoat; //导入依赖的package包/类
public RenderRasterBike()
{
this.shadowSize = 0.5F;
this.modelBoat = new ModelBoat();
}