Package alexiil.mc.lib.net.impl
Interface BlockEntityInitialData
public interface BlockEntityInitialData
This should be implemented by
BlockEntitys that wish to send their own initial data packet to players
individually, rather than using BlockEntity#toInitialChunkDataTag() or
BlockEntity.toUpdatePacket().-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<net.minecraft.server.network.ServerPlayerEntity>getPlayersWatching(net.minecraft.block.entity.BlockEntity be) LikegetPlayersWatching(ServerWorld, BlockPos), this only returns any players if the chunk containing the block entity has already had the initial data sent from the server.static Collection<net.minecraft.server.network.ServerPlayerEntity>getPlayersWatching(net.minecraft.server.world.ServerWorld svWorld, net.minecraft.util.math.BlockPos pos) This only returns any players if the chunk containing the block entity has already had the initial data sent from the server.voidsendInitialData(net.minecraft.server.network.ServerPlayerEntity to)
-
Method Details
-
sendInitialData
void sendInitialData(net.minecraft.server.network.ServerPlayerEntity to) -
getPlayersWatching
static Collection<net.minecraft.server.network.ServerPlayerEntity> getPlayersWatching(net.minecraft.block.entity.BlockEntity be) LikegetPlayersWatching(ServerWorld, BlockPos), this only returns any players if the chunk containing the block entity has already had the initial data sent from the server. -
getPlayersWatching
static Collection<net.minecraft.server.network.ServerPlayerEntity> getPlayersWatching(net.minecraft.server.world.ServerWorld svWorld, net.minecraft.util.math.BlockPos pos) This only returns any players if the chunk containing the block entity has already had the initial data sent from the server.
-