
net.minecraft.server.TileEntityContainer Maven / Gradle / Ivy
package net.minecraft.server;
public abstract class TileEntityContainer extends TileEntity implements ITileEntityContainer, ITileInventory {
private ChestLock a;
public TileEntityContainer() {
this.a = ChestLock.a;
}
public void a(NBTTagCompound nbttagcompound) {
super.a(nbttagcompound);
this.a = ChestLock.b(nbttagcompound);
}
public void b(NBTTagCompound nbttagcompound) {
super.b(nbttagcompound);
if (this.a != null) {
this.a.a(nbttagcompound);
}
}
public boolean r_() {
return this.a != null && !this.a.a();
}
public ChestLock i() {
return this.a;
}
public void a(ChestLock chestlock) {
this.a = chestlock;
}
public IChatBaseComponent getScoreboardDisplayName() {
return this.hasCustomName() ? new ChatComponentText(this.getName()) : new ChatMessage(this.getName(), new Object[0]);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy