Search in sources :

Example 1 with ContainerAltarDiscovery

use of hellfirepvp.astralsorcery.common.container.ContainerAltarDiscovery in project AstralSorcery by HellFirePvP.

the class ContainerAltarDiscoveryProvider method createFromPacket.

private static ContainerAltarDiscovery createFromPacket(int id, PlayerInventory plInventory, PacketBuffer data) {
    BlockPos at = ByteBufUtils.readPos(data);
    PlayerEntity player = plInventory.player;
    TileAltar ta = MiscUtils.getTileAt(player.getEntityWorld(), at, TileAltar.class, true);
    return new ContainerAltarDiscovery(ta, plInventory, id);
}
Also used : ContainerAltarDiscovery(hellfirepvp.astralsorcery.common.container.ContainerAltarDiscovery) BlockPos(net.minecraft.util.math.BlockPos) TileAltar(hellfirepvp.astralsorcery.common.tile.altar.TileAltar) PlayerEntity(net.minecraft.entity.player.PlayerEntity)

Aggregations

ContainerAltarDiscovery (hellfirepvp.astralsorcery.common.container.ContainerAltarDiscovery)1 TileAltar (hellfirepvp.astralsorcery.common.tile.altar.TileAltar)1 PlayerEntity (net.minecraft.entity.player.PlayerEntity)1 BlockPos (net.minecraft.util.math.BlockPos)1