예제 #1
0
 @SideOnly(Side.CLIENT)
 @Override
 public void registerModels() {
   ModelLoader.setCustomStateMapper(
       this, (new StateMap.Builder()).ignore(getTypeProperty()).build());
   ModelHandler.registerCustomItemblock(
       this,
       EnumDyeColor.values().length,
       i -> "glimmering_flower_" + EnumDyeColor.byMetadata(i).getName());
 }
예제 #2
0
 @SideOnly(Side.CLIENT)
 @Override
 public void registerModels() {
   ModelHandler.registerBlockToState(
       this, BotaniaStateProps.PAVEMENT_COLOR.getAllowedValues().size());
 }