Package etithespirit.orimod.common.tile
Interface INetworkNBTProvider
public interface INetworkNBTProvider
An interface that requires
Block Entities
to package the data they send over
the network into an NBT tag, allowing inherited NBT tag behavior in a manner akin to worlds or entities.-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.nbt.CompoundTag
getNBTForUpdatePacket
(net.minecraft.nbt.CompoundTag existingTag) Receives aCompoundTag
to populate with data to send over the network.
-
Method Details
-
getNBTForUpdatePacket
net.minecraft.nbt.CompoundTag getNBTForUpdatePacket(net.minecraft.nbt.CompoundTag existingTag) Receives aCompoundTag
to populate with data to send over the network. Lowest level implementors should call this method to acquire the NBT tag to pack into the replication packet.- Parameters:
existingTag
- The tag in its current state.- Returns:
- The tag with its modifications.
-