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);
}
Aggregations