@Override
@SideOnly(Side.CLIENT)
public void initModel() {
final ModelResourceLocation locUnBound = new ModelResourceLocation("crystalmod:telepearl", "bound=false");
final ModelResourceLocation locBound = new ModelResourceLocation("crystalmod:telepearl", "bound=true");
ModelBakery.registerItemVariants(this, locUnBound, locBound);
ModelLoader.setCustomMeshDefinition(this, new ItemMeshDefinition() {
@Override
public ModelResourceLocation getModelLocation(ItemStack stack) {
boolean bound = !ItemStackTools.isNullStack(stack) && stack.hasTagCompound() && ItemNBTHelper.verifyExistance(stack, "TeleportLocation");
return bound ? locBound : locUnBound;
}
});
}
ItemTeloportTool.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:CrystalMod
作者:
评论列表
文章目录