java.lang.Object
net.vitacraft.serverlibraries.api.event.events.lifecycle.DataPackSyncEvent
All Implemented Interfaces:
Event

public class DataPackSyncEvent extends Object implements Event
Event that is fired when the data packs are being synchronized with the client.
  • Constructor Details

    • DataPackSyncEvent

      public DataPackSyncEvent(net.minecraft.server.network.ServerPlayerEntity player, boolean joined)
  • Method Details

    • getPlayer

      public net.minecraft.server.network.ServerPlayerEntity getPlayer()
      Returns:
      the player that is synchronizing data packs
    • hasJoined

      public boolean hasJoined()
      Returns:
      whether the player has joined the server
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Event
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface Event