Newer
Older
void-pack-super-server / work / decompile-ee3ecae0 / net / minecraft / server / TileEntityBed.java
Simon Lindgren on 26 Mar 2020 517 bytes first commit
package net.minecraft.server;

public class TileEntityBed extends TileEntity {

    public EnumColor color;

    public TileEntityBed() {
        super(TileEntityTypes.BED);
    }

    public TileEntityBed(EnumColor enumcolor) {
        this();
        this.a(enumcolor);
    }

    @Override
    public PacketPlayOutTileEntityData getUpdatePacket() {
        return new PacketPlayOutTileEntityData(this.position, 11, this.b());
    }

    public void a(EnumColor enumcolor) {
        this.color = enumcolor;
    }
}