use of org.dragonet.protocol.packets.BlockEntityDataPacket in project DragonProxy by DragonetMC.
the class PCUpdateTileEntityPacketTranslator method translate.
public PEPacket[] translate(UpstreamSession session, ServerUpdateTileEntityPacket packet) {
BlockEntityDataPacket data = new BlockEntityDataPacket();
data.blockPosition = new BlockPosition(packet.getPosition());
data.tag = ItemBlockTranslator.translateBlockEntityToPE(packet.getNBT());
return new PEPacket[] { data };
}
Aggregations