예제 #1
0
 @Override
 public boolean overrideBlock(Block block, CustomBlock customBlock) {
   block.setTypeId(customBlock.getRawId());
   return overrideBlock(block, customBlock.getCustomID(), customBlock.getCustomMetaData());
 }
예제 #2
0
 public ItemStack getCustomItemStack(CustomBlock block, int size) {
   return new ItemStack(block.getRawId(), size, (short) block.getCustomID());
 }