Commits

Senmori authored and md_5 committed b6490dada59
SPIGOT-2706: Implement support for Lock NBT Tag

Containers may now implement the Lockable interface.
No tags

src/main/java/org/bukkit/craftbukkit/block/CraftBeacon.java

Modified
3 3 import java.util.ArrayList;
4 4 import java.util.Collection;
5 5 import net.minecraft.server.EntityHuman;
6 6 import net.minecraft.server.MobEffectList;
7 7 import net.minecraft.server.TileEntityBeacon;
8 8 import org.bukkit.Material;
9 9 import org.bukkit.block.Beacon;
10 10 import org.bukkit.block.Block;
11 11 import org.bukkit.craftbukkit.CraftWorld;
12 12 import org.bukkit.craftbukkit.inventory.CraftInventoryBeacon;
13 -import org.bukkit.craftbukkit.potion.CraftPotionUtil;
14 13 import org.bukkit.entity.LivingEntity;
15 14 import org.bukkit.inventory.Inventory;
16 15 import org.bukkit.potion.PotionEffect;
17 16 import org.bukkit.potion.PotionEffectType;
18 17
19 -public class CraftBeacon extends CraftBlockState implements Beacon {
18 +public class CraftBeacon extends CraftContainer implements Beacon {
20 19 private final CraftWorld world;
21 20 private final TileEntityBeacon beacon;
22 21
23 22 public CraftBeacon(final Block block) {
24 23 super(block);
25 24
26 25 world = (CraftWorld) block.getWorld();
27 26 beacon = (TileEntityBeacon) world.getTileEntityAt(getX(), getY(), getZ());
28 27 }
29 28
30 29 public CraftBeacon(final Material material, final TileEntityBeacon te) {
31 - super(material);
30 + super(material, te);
32 31 world = null;
33 32 beacon = te;
34 33 }
35 34
36 35 public Inventory getInventory() {
37 36 return new CraftInventoryBeacon(beacon);
38 37 }
39 38
40 39 @Override
41 40 public boolean update(boolean force, boolean applyPhysics) {

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut