Class PacketBlockGroup
java.lang.Object
net.bitbylogic.packetblocks.group.PacketBlockGroup
- All Implemented Interfaces:
PacketBlockHolder<Map<net.bitbylogic.utils.location.WorldPosition,,org.bukkit.block.data.BlockData>, GroupPacketBlockViewer> DataHolder<Map<net.bitbylogic.utils.location.WorldPosition,,org.bukkit.block.data.BlockData>, GroupPacketBlockViewer> MetadataHolder,ViewerHolder<Map<net.bitbylogic.utils.location.WorldPosition,org.bukkit.block.data.BlockData>, GroupPacketBlockViewer>
public class PacketBlockGroup
extends Object
implements PacketBlockHolder<Map<net.bitbylogic.utils.location.WorldPosition,org.bukkit.block.data.BlockData>,GroupPacketBlockViewer>
-
Constructor Summary
ConstructorsConstructorDescriptionPacketBlockGroup(@NonNull Map<org.bukkit.Location, org.bukkit.block.data.BlockData> blockLocations) PacketBlockGroup(@NonNull Map<org.bukkit.Location, org.bukkit.block.data.BlockData> blockLocations, int breakSpeed) -
Method Summary
Modifier and TypeMethodDescriptionbooleanexistsAt(@NonNull org.bukkit.Location location) booleanexistsIn(@NonNull org.bukkit.World world) List<org.bukkit.block.BlockState> getBlockStates(@NonNull org.bukkit.entity.Player player) Optional<org.bukkit.block.data.BlockData> getDataAt(@Nullable org.bukkit.entity.Player player, @NonNull org.bukkit.Location location) voidsendUpdate(@NonNull org.bukkit.entity.Player player) Sends a block update to the specified player at the current location.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.bitbylogic.packetblocks.data.DataHolder
getBoundingBoxes, getBreakSpeed, getBreakSpeed, getData, getData, getDataHandler, isAddViewerOnJoin, isGlobalBreakAnimation, sendUpdates, setAddViewerOnJoin, setBlockDataAndUpdate, setBreakSpeed, setData, setData, setDataForAll, setDataSupplier, setDataSupplierForAll, setGlobalBreakAnimationMethods inherited from interface net.bitbylogic.packetblocks.metadata.MetadataHolder
addMetadata, getMetadata, getMetadata, getMetadataAs, getMetadataHandler, hasMetadata, removeMetadataMethods inherited from interface net.bitbylogic.packetblocks.viewer.ViewerHolder
addAndUpdateViewer, addMetadata, addViewCondition, addViewer, attemptAddViewer, canView, getMetadata, getMetadataAs, getViewer, getViewerHandler, getViewers, hasMetadata, isViewer, removeMetadata, removeViewer
-
Constructor Details
-
Method Details
-
getBlockStates
public List<org.bukkit.block.BlockState> getBlockStates(@NonNull @NonNull org.bukkit.entity.Player player) -
getDataAt
public Optional<org.bukkit.block.data.BlockData> getDataAt(@Nullable @Nullable org.bukkit.entity.Player player, @NonNull @NonNull org.bukkit.Location location) -
sendUpdate
public void sendUpdate(@NonNull @NonNull org.bukkit.entity.Player player) Sends a block update to the specified player at the current location.- Specified by:
sendUpdatein interfacePacketBlockHolder<Map<net.bitbylogic.utils.location.WorldPosition,org.bukkit.block.data.BlockData>, GroupPacketBlockViewer> - Parameters:
player- the player to whom the block update will be sent
-
existsIn
public boolean existsIn(@NonNull @NonNull org.bukkit.World world) - Specified by:
existsInin interfacePacketBlockHolder<Map<net.bitbylogic.utils.location.WorldPosition,org.bukkit.block.data.BlockData>, GroupPacketBlockViewer>
-
existsAt
public boolean existsAt(@NonNull @NonNull org.bukkit.Location location) - Specified by:
existsAtin interfacePacketBlockHolder<Map<net.bitbylogic.utils.location.WorldPosition,org.bukkit.block.data.BlockData>, GroupPacketBlockViewer>
-