Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 04:50:05 +01:00
Add some missing Tile Entities
Dieser Commit ist enthalten in:
Ursprung
44ea9d88c2
Commit
a6465002bf
@ -83,18 +83,25 @@ public final class CraftItemFactory implements ItemFactory {
|
|||||||
return meta instanceof CraftMetaEnchantedBook ? meta : new CraftMetaEnchantedBook(meta);
|
return meta instanceof CraftMetaEnchantedBook ? meta : new CraftMetaEnchantedBook(meta);
|
||||||
case BANNER:
|
case BANNER:
|
||||||
return meta instanceof CraftMetaBanner ? meta : new CraftMetaBanner(meta);
|
return meta instanceof CraftMetaBanner ? meta : new CraftMetaBanner(meta);
|
||||||
case COMMAND:
|
case FURNACE:
|
||||||
case CHEST:
|
case CHEST:
|
||||||
case TRAPPED_CHEST:
|
case TRAPPED_CHEST:
|
||||||
case FURNACE:
|
|
||||||
case HOPPER:
|
|
||||||
case MOB_SPAWNER:
|
|
||||||
case SIGN:
|
|
||||||
case BREWING_STAND_ITEM:
|
|
||||||
case JUKEBOX:
|
case JUKEBOX:
|
||||||
case FLOWER_POT_ITEM:
|
|
||||||
case DISPENSER:
|
case DISPENSER:
|
||||||
case DROPPER:
|
case DROPPER:
|
||||||
|
case SIGN:
|
||||||
|
case MOB_SPAWNER:
|
||||||
|
case NOTE_BLOCK:
|
||||||
|
case PISTON_BASE:
|
||||||
|
case BREWING_STAND_ITEM:
|
||||||
|
case ENCHANTMENT_TABLE:
|
||||||
|
case COMMAND:
|
||||||
|
case BEACON:
|
||||||
|
case DAYLIGHT_DETECTOR:
|
||||||
|
case DAYLIGHT_DETECTOR_INVERTED:
|
||||||
|
case HOPPER:
|
||||||
|
case REDSTONE_COMPARATOR:
|
||||||
|
case FLOWER_POT_ITEM:
|
||||||
if (meta instanceof CraftMetaTileEntity) {
|
if (meta instanceof CraftMetaTileEntity) {
|
||||||
CraftMetaTileEntity te = (CraftMetaTileEntity) meta;
|
CraftMetaTileEntity te = (CraftMetaTileEntity) meta;
|
||||||
if (te.material != material) {
|
if (te.material != material) {
|
||||||
|
@ -347,18 +347,25 @@ public final class CraftItemStack extends ItemStack {
|
|||||||
return new CraftMetaEnchantedBook(item.getTag());
|
return new CraftMetaEnchantedBook(item.getTag());
|
||||||
case BANNER:
|
case BANNER:
|
||||||
return new CraftMetaBanner(item.getTag());
|
return new CraftMetaBanner(item.getTag());
|
||||||
case COMMAND:
|
case FURNACE:
|
||||||
case CHEST:
|
case CHEST:
|
||||||
case TRAPPED_CHEST:
|
case TRAPPED_CHEST:
|
||||||
case FURNACE:
|
|
||||||
case HOPPER:
|
|
||||||
case MOB_SPAWNER:
|
|
||||||
case SIGN:
|
|
||||||
case BREWING_STAND_ITEM:
|
|
||||||
case JUKEBOX:
|
case JUKEBOX:
|
||||||
case FLOWER_POT_ITEM:
|
|
||||||
case DISPENSER:
|
case DISPENSER:
|
||||||
case DROPPER:
|
case DROPPER:
|
||||||
|
case SIGN:
|
||||||
|
case MOB_SPAWNER:
|
||||||
|
case NOTE_BLOCK:
|
||||||
|
case PISTON_BASE:
|
||||||
|
case BREWING_STAND_ITEM:
|
||||||
|
case ENCHANTMENT_TABLE:
|
||||||
|
case COMMAND:
|
||||||
|
case BEACON:
|
||||||
|
case DAYLIGHT_DETECTOR:
|
||||||
|
case DAYLIGHT_DETECTOR_INVERTED:
|
||||||
|
case HOPPER:
|
||||||
|
case REDSTONE_COMPARATOR:
|
||||||
|
case FLOWER_POT_ITEM:
|
||||||
return new CraftMetaTileEntity(item.getTag(), CraftMagicNumbers.getMaterial(item.getItem()));
|
return new CraftMetaTileEntity(item.getTag(), CraftMagicNumbers.getMaterial(item.getItem()));
|
||||||
default:
|
default:
|
||||||
return new CraftMetaItem(item.getTag());
|
return new CraftMetaItem(item.getTag());
|
||||||
|
@ -98,18 +98,25 @@ public class CraftMetaTileEntity extends CraftMetaItem {
|
|||||||
@Override
|
@Override
|
||||||
boolean applicableTo(Material type) {
|
boolean applicableTo(Material type) {
|
||||||
switch(type){
|
switch(type){
|
||||||
case COMMAND:
|
case FURNACE:
|
||||||
case CHEST:
|
case CHEST:
|
||||||
case TRAPPED_CHEST:
|
case TRAPPED_CHEST:
|
||||||
case FURNACE:
|
|
||||||
case HOPPER:
|
|
||||||
case MOB_SPAWNER:
|
|
||||||
case SIGN:
|
|
||||||
case BREWING_STAND_ITEM:
|
|
||||||
case JUKEBOX:
|
case JUKEBOX:
|
||||||
case FLOWER_POT_ITEM:
|
|
||||||
case DISPENSER:
|
case DISPENSER:
|
||||||
case DROPPER:
|
case DROPPER:
|
||||||
|
case SIGN:
|
||||||
|
case MOB_SPAWNER:
|
||||||
|
case NOTE_BLOCK:
|
||||||
|
case PISTON_BASE:
|
||||||
|
case BREWING_STAND_ITEM:
|
||||||
|
case ENCHANTMENT_TABLE:
|
||||||
|
case COMMAND:
|
||||||
|
case BEACON:
|
||||||
|
case DAYLIGHT_DETECTOR:
|
||||||
|
case DAYLIGHT_DETECTOR_INVERTED:
|
||||||
|
case HOPPER:
|
||||||
|
case REDSTONE_COMPARATOR:
|
||||||
|
case FLOWER_POT_ITEM:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren