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