Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override def registerRenderers() {
- super.registerRenderers()
- val fluidSwagggModelLoc = new ModelResourceLocation(Reference.RESOURCE_PREFIX + SwagggBlocks.fluidSwaggg.name, "fluid")
- val fluidSwaggg: Item = Item.getItemFromBlock(SwagggBlocks.fluidSwaggg.asInstanceOf[Block])
- ModelBakery.addVariantName(fluidSwaggg)
- ModelLoader.setCustomMeshDefinition(fluidSwaggg, new ItemMeshDefinition() {
- def getModelLocation(stack: ItemStack): ModelResourceLocation = {
- fluidSwagggModelLoc
- }
- })
- ModelLoader.setCustomStateMapper(SwagggBlocks.fluidSwaggg.asInstanceOf[Block], new StateMapperBase() {
- protected def getModelResourceLocation(state: IBlockState): ModelResourceLocation = {
- fluidSwagggModelLoc
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement