Search in sources :

Example 1 with ContainerAltarAttunement

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

the class ContainerAltarAttunementProvider method createFromPacket.

private static ContainerAltarAttunement 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 ContainerAltarAttunement(ta, plInventory, id);
}
Also used : ContainerAltarAttunement(hellfirepvp.astralsorcery.common.container.ContainerAltarAttunement) BlockPos(net.minecraft.util.math.BlockPos) TileAltar(hellfirepvp.astralsorcery.common.tile.altar.TileAltar) PlayerEntity(net.minecraft.entity.player.PlayerEntity)

Aggregations

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