public class SpongeEventFactory extends Object
Constructor and Description |
---|
SpongeEventFactory() |
Modifier and Type | Method and Description |
---|---|
static AffectEntityEvent |
createAffectEntityEvent(Game game,
Cause cause,
List<Entity> entities,
List<EntitySnapshot> entitySnapshots,
World targetWorld)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static AffectItemStackEvent |
createAffectItemStackEvent(Game game,
Cause cause,
Inventory targetInventory,
List<Transaction<ItemStackSnapshot>> transactions)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static BanIpEvent |
createBanIpEvent(Ban.Ip ban)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static BanUserEvent |
createBanUserEvent(Cause cause,
Ban.User ban,
User targetUser)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static BanUserEvent.TargetPlayer |
createBanUserEventTargetPlayer(Game game,
Cause cause,
Ban.User ban,
Player targetEntity,
User targetUser)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static BreedEntityEvent |
createBreedEntityEvent(Game game,
Cause cause,
Optional<com.flowpowered.math.vector.Vector3d> interactionPoint,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static BreedEntityEvent.Breed |
createBreedEntityEventBreed(Game game,
Cause cause,
Optional<com.flowpowered.math.vector.Vector3d> interactionPoint,
Ageable offspringEntity,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static BreedEntityEvent.FindMate |
createBreedEntityEventFindMate(Game game,
Cause cause,
TristateResult.Result originalResult,
TristateResult.Result result,
Optional<com.flowpowered.math.vector.Vector3d> interactionPoint,
Entity targetEntity,
boolean hasAllowResult)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static BrewingEvent |
createBrewingEvent(Game game,
Cause cause,
ItemStackSnapshot ingredient,
BrewingStand targetTile)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static BrewingEvent.Finish |
createBrewingEventFinish(Game game,
Cause cause,
List<ItemStackSnapshot> brewedItemStacks,
ItemStackSnapshot ingredient,
BrewingStand targetTile)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static BrewingEvent.Interrupt |
createBrewingEventInterrupt(Game game,
Cause cause,
List<ItemStackSnapshot> brewedItemStacks,
ItemStackSnapshot ingredient,
BrewingStand targetTile)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static BrewingEvent.Start |
createBrewingEventStart(Game game,
Cause cause,
ItemStackSnapshot ingredient,
Inventory targetInventory,
BrewingStand targetTile,
List<Transaction<ItemStackSnapshot>> transactions)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static BrewingEvent.Tick |
createBrewingEventTick(Game game,
Cause cause,
ItemStackSnapshot ingredient,
Inventory targetInventory,
BrewingStand targetTile,
List<Transaction<ItemStackSnapshot>> transactions)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeBlockEvent |
createChangeBlockEvent(Game game,
Cause cause,
World targetWorld,
List<Transaction<BlockSnapshot>> transactions)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeBlockEvent.Break |
createChangeBlockEventBreak(Game game,
Cause cause,
World targetWorld,
List<Transaction<BlockSnapshot>> transactions)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeBlockEvent.Decay |
createChangeBlockEventDecay(Game game,
Cause cause,
World targetWorld,
List<Transaction<BlockSnapshot>> transactions)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeBlockEvent.Fluid |
createChangeBlockEventFluid(Game game,
Cause cause,
World targetWorld,
List<Transaction<BlockSnapshot>> transactions)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeBlockEvent.Grow |
createChangeBlockEventGrow(Game game,
Cause cause,
World targetWorld,
List<Transaction<BlockSnapshot>> transactions)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeBlockEvent.Modify |
createChangeBlockEventModify(Game game,
Cause cause,
World targetWorld,
List<Transaction<BlockSnapshot>> transactions)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeBlockEvent.Place |
createChangeBlockEventPlace(Game game,
Cause cause,
World targetWorld,
List<Transaction<BlockSnapshot>> transactions)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeBlockEvent.Post |
createChangeBlockEventPost(Game game,
Cause cause,
World targetWorld,
List<Transaction<BlockSnapshot>> transactions)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeDataHolderEvent |
createChangeDataHolderEvent(Game game,
DataHolder targetHolder)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeDataHolderEvent.ValueChange |
createChangeDataHolderEventValueChange(Game game,
DataTransactionResult originalChanges,
DataHolder targetHolder)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeEntityEquipmentEvent |
createChangeEntityEquipmentEvent(Game game,
Optional<ItemStackSnapshot> originalItemStack,
Optional<Transaction<ItemStackSnapshot>> itemStack,
Entity targetEntity,
Slot targetInventory)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeEntityEquipmentEvent.TargetHuman |
createChangeEntityEquipmentEventTargetHuman(Game game,
Optional<ItemStackSnapshot> originalItemStack,
Optional<Transaction<ItemStackSnapshot>> itemStack,
Human targetEntity,
Slot targetInventory)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeEntityEquipmentEvent.TargetLiving |
createChangeEntityEquipmentEventTargetLiving(Game game,
Optional<ItemStackSnapshot> originalItemStack,
Optional<Transaction<ItemStackSnapshot>> itemStack,
Living targetEntity,
Slot targetInventory)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeEntityEquipmentEvent.TargetPlayer |
createChangeEntityEquipmentEventTargetPlayer(Game game,
Optional<ItemStackSnapshot> originalItemStack,
Optional<Transaction<ItemStackSnapshot>> itemStack,
Player targetEntity,
Slot targetInventory)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeEntityExperienceEvent |
createChangeEntityExperienceEvent(Game game,
Cause cause,
int originalExperience,
int experience,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeEntityPotionEffectEvent |
createChangeEntityPotionEffectEvent(Game game,
Cause cause,
List<PotionEffect> currentEffects,
PotionEffect potionEffect,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeEntityPotionEffectEvent.Expire |
createChangeEntityPotionEffectEventExpire(Game game,
Cause cause,
List<PotionEffect> currentEffects,
PotionEffect potionEffect,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeEntityPotionEffectEvent.Gain |
createChangeEntityPotionEffectEventGain(Game game,
Cause cause,
List<PotionEffect> currentEffects,
PotionEffect potionEffect,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeEntityPotionEffectEvent.Remove |
createChangeEntityPotionEffectEventRemove(Game game,
Cause cause,
List<PotionEffect> currentEffects,
PotionEffect potionEffect,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeGameModeEvent |
createChangeGameModeEvent(Game game,
Cause cause,
GameMode originalGameMode,
GameMode gameMode)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeGameModeEvent.TargetHuman |
createChangeGameModeEventTargetHuman(Game game,
Cause cause,
GameMode originalGameMode,
GameMode gameMode,
Human targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeGameModeEvent.TargetPlayer |
createChangeGameModeEventTargetPlayer(Game game,
Cause cause,
GameMode originalGameMode,
GameMode gameMode,
Player targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeInventoryEvent |
createChangeInventoryEvent(Game game,
Cause cause,
Transaction<ItemStackSnapshot> itemStackTransaction,
Optional<ItemStackSnapshot> originalItemStack,
Inventory targetInventory)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeInventoryEvent.Click |
createChangeInventoryEventClick(Game game,
Cause cause,
Transaction<ItemStackSnapshot> itemStackTransaction,
Optional<ItemStackSnapshot> originalItemStack,
Inventory targetInventory)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeInventoryEvent.Drag |
createChangeInventoryEventDrag(Game game,
Cause cause,
Transaction<ItemStackSnapshot> itemStackTransaction,
Optional<ItemStackSnapshot> originalItemStack,
Inventory targetInventory)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeInventoryEvent.Equipment |
createChangeInventoryEventEquipment(Game game,
Cause cause,
Transaction<ItemStackSnapshot> itemStackTransaction,
Optional<ItemStackSnapshot> originalItemStack,
Slot targetInventory)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeInventoryEvent.Held |
createChangeInventoryEventHeld(Game game,
Cause cause,
Transaction<ItemStackSnapshot> itemStackTransaction,
Optional<ItemStackSnapshot> originalItemStack,
Slot targetInventory)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeInventoryEvent.Move |
createChangeInventoryEventMove(Game game,
Cause cause,
Transaction<ItemStackSnapshot> itemStackTransaction,
Optional<ItemStackSnapshot> originalItemStack,
Inventory targetInventory)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeLevelEvent |
createChangeLevelEvent(Game game,
Cause cause,
int originalLevel,
int level)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeLevelEvent.TargetHuman |
createChangeLevelEventTargetHuman(Game game,
Cause cause,
int originalLevel,
int level,
Human targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeLevelEvent.TargetPlayer |
createChangeLevelEventTargetPlayer(Game game,
Cause cause,
int originalLevel,
int level,
Player targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeSignEvent |
createChangeSignEvent(Game game,
Cause cause,
ImmutableSignData originalText,
SignData text,
Sign targetTile)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeStatisticEvent |
createChangeStatisticEvent(Game game,
Cause cause,
long originalValue,
long value,
Statistic statistic)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeStatisticEvent.TargetPlayer |
createChangeStatisticEventTargetPlayer(Game game,
Cause cause,
long originalValue,
long value,
Statistic statistic,
Player targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeWorldGameRuleEvent |
createChangeWorldGameRuleEvent(Game game,
Cause cause,
String originalValue,
String value,
String name,
World targetWorld)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChangeWorldWeatherEvent |
createChangeWorldWeatherEvent(Game game,
Cause cause,
int originalDuration,
int duration,
Weather originalWeather,
Weather weather,
Weather initialWeather,
World targetWorld)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChannelRegistrationEvent |
createChannelRegistrationEvent(Cause cause,
String channel)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChannelRegistrationEvent.Register |
createChannelRegistrationEventRegister(Cause cause,
String channel)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ChannelRegistrationEvent.Unregister |
createChannelRegistrationEventUnregister(Cause cause,
String channel)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ClientConnectionEvent |
createClientConnectionEvent(Game game)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ClientConnectionEvent.Auth |
createClientConnectionEventAuth(Game game,
Cause cause,
Text originalMessage,
Text message,
MessageSink originalSink,
MessageSink sink,
RemoteConnection connection,
GameProfile profile)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ClientConnectionEvent.Disconnect |
createClientConnectionEventDisconnect(Game game,
Cause cause,
Text originalMessage,
Text message,
MessageSink originalSink,
MessageSink sink,
Player targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ClientConnectionEvent.Join |
createClientConnectionEventJoin(Game game,
Cause cause,
Text originalMessage,
Text message,
MessageSink originalSink,
MessageSink sink,
Player targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ClientConnectionEvent.Login |
createClientConnectionEventLogin(Game game,
Cause cause,
Text originalMessage,
Text message,
MessageSink originalSink,
MessageSink sink,
Transform<World> fromTransform,
Transform<World> toTransform,
RemoteConnection connection,
GameProfile profile)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ClientPingServerEvent |
createClientPingServerEvent(StatusClient client,
ClientPingServerEvent.Response response)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ClientPingServerEvent.Response |
createClientPingServerEventResponse(Text description,
Optional<Favicon> favicon,
Optional<ClientPingServerEvent.Response.Players> players,
MinecraftVersion version)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ClientPingServerEvent.Response.Players |
createClientPingServerEventResponsePlayers(List<GameProfile> profiles,
int max,
int online)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static CollideBlockEvent |
createCollideBlockEvent(Game game,
Cause cause,
BlockState targetBlock,
Location<World> targetLocation,
Direction targetSide)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static CollideEntityEvent |
createCollideEntityEvent(Game game,
Cause cause,
List<Entity> originalEntities,
List<Entity> entities,
World targetWorld)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ConstructEntityEvent |
createConstructEntityEvent(Game game,
Cause cause,
EntityType targetType,
Transform<World> transform)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ConstructEntityEvent.Post |
createConstructEntityEventPost(Game game,
Cause cause,
Entity targetEntity,
EntityType targetType,
Transform<World> transform)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ConstructEntityEvent.Pre |
createConstructEntityEventPre(Game game,
Cause cause,
EntityType targetType,
Transform<World> transform)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ConstructPortalEvent |
createConstructPortalEvent(Game game,
Cause cause,
Location<World> portalLocation)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ConstructWorldEvent |
createConstructWorldEvent(Game game,
Cause cause,
WorldCreationSettings worldCreationSettings,
WorldProperties worldProperties)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static CraftItemEvent |
createCraftItemEvent(Game game,
Cause cause,
Recipe recipe,
CraftingInventory targetInventory,
List<Transaction<ItemStackSnapshot>> transactions)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static DamageEntityEvent |
createDamageEntityEvent(Game game,
Cause cause,
List<Tuple<DamageModifier,java.util.function.Function<? super Double,Double>>> originalFunctions,
Entity targetEntity,
double originalDamage)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static DecayBlockEvent |
createDecayBlockEvent(Game game,
Cause cause,
World targetWorld,
List<Transaction<BlockSnapshot>> transactions)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static DestructEntityEvent |
createDestructEntityEvent(Game game,
Cause cause,
Text originalMessage,
Text message,
MessageSink originalSink,
MessageSink sink,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static DestructEntityEvent.Death |
createDestructEntityEventDeath(Game game,
Cause cause,
Text originalMessage,
Text message,
MessageSink originalSink,
MessageSink sink,
Living targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static DismountEntityEvent |
createDismountEntityEvent(Game game,
Cause cause,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static DisplaceEntityEvent |
createDisplaceEntityEvent(Game game,
Transform<World> fromTransform,
Transform<World> toTransform,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static DisplaceEntityEvent.Move |
createDisplaceEntityEventMove(Game game,
Transform<World> fromTransform,
Transform<World> toTransform,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static DisplaceEntityEvent.Move.TargetHuman |
createDisplaceEntityEventMoveTargetHuman(Game game,
Transform<World> fromTransform,
Transform<World> toTransform,
Human targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static DisplaceEntityEvent.Move.TargetLiving |
createDisplaceEntityEventMoveTargetLiving(Game game,
Transform<World> fromTransform,
Transform<World> toTransform,
Living targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static DisplaceEntityEvent.Move.TargetPlayer |
createDisplaceEntityEventMoveTargetPlayer(Game game,
Transform<World> fromTransform,
Transform<World> toTransform,
Player targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static DisplaceEntityEvent.TargetHuman |
createDisplaceEntityEventTargetHuman(Game game,
Transform<World> fromTransform,
Transform<World> toTransform,
Human targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static DisplaceEntityEvent.TargetLiving |
createDisplaceEntityEventTargetLiving(Game game,
Transform<World> fromTransform,
Transform<World> toTransform,
Living targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static DisplaceEntityEvent.TargetPlayer |
createDisplaceEntityEventTargetPlayer(Game game,
Transform<World> fromTransform,
Transform<World> toTransform,
Player targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static DisplaceEntityEvent.Teleport |
createDisplaceEntityEventTeleport(Game game,
Cause cause,
Transform<World> fromTransform,
Transform<World> toTransform,
Entity targetEntity,
TeleporterAgent teleporterAgent,
boolean keepsVelocity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static DisplaceEntityEvent.Teleport.TargetHuman |
createDisplaceEntityEventTeleportTargetHuman(Game game,
Cause cause,
Transform<World> fromTransform,
Transform<World> toTransform,
Human targetEntity,
TeleporterAgent teleporterAgent,
boolean keepsVelocity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static DisplaceEntityEvent.Teleport.TargetLiving |
createDisplaceEntityEventTeleportTargetLiving(Game game,
Cause cause,
Transform<World> fromTransform,
Transform<World> toTransform,
Living targetEntity,
TeleporterAgent teleporterAgent,
boolean keepsVelocity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static DisplaceEntityEvent.Teleport.TargetPlayer |
createDisplaceEntityEventTeleportTargetPlayer(Game game,
Cause cause,
Transform<World> fromTransform,
Transform<World> toTransform,
Player targetEntity,
TeleporterAgent teleporterAgent,
boolean keepsVelocity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static DropItemEvent |
createDropItemEvent(Game game,
Cause cause,
List<Entity> entities,
List<EntitySnapshot> entitySnapshots,
World targetWorld)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static DropItemEvent.Custom |
createDropItemEventCustom(Game game,
Cause cause,
List<Entity> entities,
List<EntitySnapshot> entitySnapshots,
World targetWorld)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static DropItemEvent.Destruct |
createDropItemEventDestruct(Game game,
Cause cause,
List<Entity> entities,
List<EntitySnapshot> entitySnapshots,
World targetWorld)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static DropItemEvent.Dispense |
createDropItemEventDispense(Game game,
Cause cause,
List<Entity> entities,
List<EntitySnapshot> entitySnapshots,
World targetWorld)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static Event |
createEvent()
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ExpireEntityEvent |
createExpireEntityEvent(Game game,
Cause cause,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ExpireEntityEvent.TargetItem |
createExpireEntityEventTargetItem(Game game,
Cause cause,
Item targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ExplosionEvent |
createExplosionEvent(Game game,
Cause cause,
Explosion explosion,
World targetWorld)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ExplosionEvent.Detonate |
createExplosionEventDetonate(Game game,
Cause cause,
List<Entity> entities,
List<EntitySnapshot> entitySnapshots,
Explosion explosion,
World targetWorld,
List<Transaction<BlockSnapshot>> transactions)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ExplosionEvent.Post |
createExplosionEventPost(Game game,
Cause cause,
Explosion explosion,
World targetWorld)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ExplosionEvent.Pre |
createExplosionEventPre(Game game,
Cause cause,
Explosion explosion,
World targetWorld)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static FishingEvent |
createFishingEvent(Game game,
Cause cause,
EntitySnapshot originalFishHook,
FishHook fishHook)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static FishingEvent.Finish |
createFishingEventFinish(Game game,
Cause cause,
EntitySnapshot originalFishHook,
FishHook fishHook)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static FishingEvent.Hook |
createFishingEventHook(Game game,
Cause cause,
EntitySnapshot originalFishHook,
FishHook fishHook,
EntitySnapshot originalHookedEntity,
Optional<Entity> hookedEntity,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static FishingEvent.Start |
createFishingEventStart(Game game,
Cause cause,
EntitySnapshot originalFishHook,
FishHook fishHook)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static FishingEvent.Stop |
createFishingEventStop(Game game,
Cause cause,
Optional<EntitySnapshot> originalCaughtEntity,
Optional<Entity> caughtEntity,
int originalExperience,
int experience,
EntitySnapshot originalFishHook,
FishHook fishHook,
Optional<Transaction<ItemStackSnapshot>> itemStackTransaction,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ForcedChunkEvent |
createForcedChunkEvent(Game game,
com.flowpowered.math.vector.Vector3i chunkCoords,
Chunk targetChunk,
ChunkLoadService.LoadingTicket ticket)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static GameAboutToStartServerEvent |
createGameAboutToStartServerEvent(Game game,
GameState state)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static GameConstructionEvent |
createGameConstructionEvent(Game game,
GameState state)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static GameEvent |
createGameEvent(Game game)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static GameInitializationEvent |
createGameInitializationEvent(Game game,
GameState state)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static GameLoadCompleteEvent |
createGameLoadCompleteEvent(Game game,
GameState state)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static GamePostInitializationEvent |
createGamePostInitializationEvent(Game game,
GameState state)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static GamePreInitializationEvent |
createGamePreInitializationEvent(Game game,
GameState state)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static GameStartedServerEvent |
createGameStartedServerEvent(Game game,
GameState state)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static GameStartingServerEvent |
createGameStartingServerEvent(Game game,
GameState state)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static GameStateEvent |
createGameStateEvent(Game game,
GameState state)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static GameStoppedServerEvent |
createGameStoppedServerEvent(Game game,
GameState state)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static GameStoppingServerEvent |
createGameStoppingServerEvent(Game game,
GameState state)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static GenerateChunkEvent |
createGenerateChunkEvent(Game game,
Cause cause,
Chunk targetChunk)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static GenerateChunkEvent.Post |
createGenerateChunkEventPost(Game game,
Cause cause,
Chunk targetChunk)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static GenerateChunkEvent.Pre |
createGenerateChunkEventPre(Game game,
Cause cause,
Chunk targetChunk)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static GrantAchievementEvent |
createGrantAchievementEvent(Game game,
Cause cause,
Text originalMessage,
Text message,
MessageSink originalSink,
MessageSink sink,
Achievement achievement)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static GrantAchievementEvent.TargetPlayer |
createGrantAchievementEventTargetPlayer(Game game,
Cause cause,
Text originalMessage,
Text message,
MessageSink originalSink,
MessageSink sink,
Achievement achievement,
Player targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static GrowBlockEvent |
createGrowBlockEvent(Game game,
Cause cause,
World targetWorld,
List<Transaction<BlockSnapshot>> transactions)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static HarvestEntityEvent |
createHarvestEntityEvent(Game game,
Cause cause,
int originalExperience,
int experience,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static HarvestEntityEvent.TargetHuman |
createHarvestEntityEventTargetHuman(Game game,
Cause cause,
int originalExperience,
int experience,
Human targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static HarvestEntityEvent.TargetLiving |
createHarvestEntityEventTargetLiving(Game game,
Cause cause,
int originalExperience,
int experience,
Living targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static HarvestEntityEvent.TargetPlayer |
createHarvestEntityEventTargetPlayer(Game game,
Cause cause,
int originalExperience,
int experience,
Player targetEntity,
boolean keepsInventory,
boolean keepsLevel,
int level)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static HealEntityEvent |
createHealEntityEvent(Game game,
Cause cause,
List<Tuple<HealthModifier,java.util.function.Function<? super Double,Double>>> originalFunctions,
Entity targetEntity,
double originalHealAmount)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static IgniteEntityEvent |
createIgniteEntityEvent(Game game,
Cause cause,
int originalFireTicks,
int fireTicks,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static InteractBlockEvent |
createInteractBlockEvent(Game game,
Cause cause,
Optional<com.flowpowered.math.vector.Vector3d> interactionPoint,
BlockSnapshot targetBlock,
Direction targetSide)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static InteractBlockEvent.Primary |
createInteractBlockEventPrimary(Game game,
Cause cause,
Optional<com.flowpowered.math.vector.Vector3d> interactionPoint,
BlockSnapshot targetBlock,
Direction targetSide)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static InteractBlockEvent.Secondary |
createInteractBlockEventSecondary(Game game,
Cause cause,
Optional<com.flowpowered.math.vector.Vector3d> interactionPoint,
BlockSnapshot targetBlock,
Direction targetSide)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static InteractEntityEvent |
createInteractEntityEvent(Game game,
Cause cause,
Optional<com.flowpowered.math.vector.Vector3d> interactionPoint,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static InteractEntityEvent.Primary |
createInteractEntityEventPrimary(Game game,
Cause cause,
Optional<com.flowpowered.math.vector.Vector3d> interactionPoint,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static InteractEntityEvent.Secondary |
createInteractEntityEventSecondary(Game game,
Cause cause,
Optional<com.flowpowered.math.vector.Vector3d> interactionPoint,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static InteractEvent |
createInteractEvent(Game game,
Cause cause,
Optional<com.flowpowered.math.vector.Vector3d> interactionPoint)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static InteractInventoryEvent |
createInteractInventoryEvent(Game game,
Cause cause,
Inventory targetInventory)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static InteractInventoryEvent.Close |
createInteractInventoryEventClose(Game game,
Cause cause,
Inventory targetInventory)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static InteractInventoryEvent.Open |
createInteractInventoryEventOpen(Game game,
Cause cause,
Inventory targetInventory)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ItemMergeItemEvent |
createItemMergeItemEvent(Game game,
Cause cause,
Item itemToMerge,
Item targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static KickPlayerEvent |
createKickPlayerEvent(Game game,
Cause cause,
Text originalMessage,
Text message,
MessageSink originalSink,
MessageSink sink,
Player targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static LaunchProjectileEvent |
createLaunchProjectileEvent(Game game,
Cause cause,
Projectile targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static LeashEntityEvent |
createLeashEntityEvent(Game game,
Cause cause,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static LightningEvent |
createLightningEvent(Game game,
Cause cause)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static LightningEvent.Post |
createLightningEventPost(Game game,
Cause cause)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static LightningEvent.Pre |
createLightningEventPre(Game game,
Cause cause)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static LightningEvent.Strike |
createLightningEventStrike(Game game,
Cause cause,
List<Entity> entities,
List<EntitySnapshot> entitySnapshots,
World targetWorld,
List<Transaction<BlockSnapshot>> transactions)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static LoadChunkEvent |
createLoadChunkEvent(Game game,
Cause cause,
Chunk targetChunk)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static LoadWorldEvent |
createLoadWorldEvent(Game game,
Cause cause,
World targetWorld)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static MessageEvent |
createMessageEvent(Game game,
Cause cause,
Text originalMessage,
Text message)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static MessageSinkEvent |
createMessageSinkEvent(Game game,
Cause cause,
Text originalMessage,
Text message,
MessageSink originalSink,
MessageSink sink)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static MessageSinkEvent.Chat |
createMessageSinkEventChat(Game game,
Cause cause,
Text originalMessage,
Text message,
MessageSink originalSink,
MessageSink sink,
Text rawMessage)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static MountEntityEvent |
createMountEntityEvent(Game game,
Cause cause,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static MoveBlockEvent |
createMoveBlockEvent(Game game,
Cause cause,
World targetWorld,
List<Transaction<BlockSnapshot>> transactions)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static NotifyNeighborBlockEvent |
createNotifyNeighborBlockEvent(Game game,
Cause cause,
Map<Direction,BlockState> originalNeighbors,
Map<Direction,BlockState> neighbors)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static PardonIpEvent |
createPardonIpEvent(Ban.Ip ban)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static PardonUserEvent |
createPardonUserEvent(Cause cause,
Ban.User ban,
User targetUser)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static PardonUserEvent.TargetPlayer |
createPardonUserEventTargetPlayer(Game game,
Cause cause,
Ban.User ban,
Player targetEntity,
Player targetUser)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static PopulateChunkEvent |
createPopulateChunkEvent(Game game,
Cause cause,
Chunk targetChunk)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static PopulateChunkEvent.Populate |
createPopulateChunkEventPopulate(Game game,
Cause cause,
Chunk targetChunk)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static PopulateChunkEvent.Post |
createPopulateChunkEventPost(Game game,
Cause cause,
Map<PopulatorType,List<Transaction<BlockSnapshot>>> populatedTransactions,
Chunk targetChunk)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static PopulateChunkEvent.Pre |
createPopulateChunkEventPre(Game game,
Cause cause,
List<Populator> pendingPopulators,
Chunk targetChunk)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static QueryServerEvent |
createQueryServerEvent()
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static QueryServerEvent.Basic |
createQueryServerEventBasic(InetSocketAddress address,
String gameType,
String map,
String motd,
int maxPlayerCount,
int maxSize,
int playerCount,
int size)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static QueryServerEvent.Full |
createQueryServerEventFull(InetSocketAddress address,
Map<String,String> customValuesMap,
String gameId,
String gameType,
String map,
String motd,
List<String> players,
String plugins,
String version,
int maxPlayerCount,
int maxSize,
int playerCount,
int size)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static RconConnectionEvent |
createRconConnectionEvent(RconSource source)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static RconConnectionEvent.Connect |
createRconConnectionEventConnect(RconSource source)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static RconConnectionEvent.Disconnect |
createRconConnectionEventDisconnect(RconSource source)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static RconConnectionEvent.Login |
createRconConnectionEventLogin(RconSource source)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static ResourcePackStatusEvent |
createResourcePackStatusEvent(Game game,
ResourcePack pack,
Player player,
ResourcePackStatusEvent.ResourcePackStatus status)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static RespawnPlayerEvent |
createRespawnPlayerEvent(Game game,
Cause cause,
Transform<World> fromTransform,
Transform<World> toTransform,
Player targetEntity,
boolean bedSpawn)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static SendCommandEvent |
createSendCommandEvent(Game game,
Cause cause,
String arguments,
String command,
CommandResult result)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static SleepingEvent |
createSleepingEvent(Game game,
Cause cause,
BlockSnapshot bed,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static SleepingEvent.Finish |
createSleepingEventFinish(Game game,
Cause cause,
BlockSnapshot bed,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static SleepingEvent.Post |
createSleepingEventPost(Game game,
Cause cause,
BlockSnapshot bed,
Optional<Transform<World>> spawnTransform,
Entity targetEntity,
boolean spawnSet)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static SleepingEvent.Pre |
createSleepingEventPre(Game game,
Cause cause,
BlockSnapshot bed,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static SleepingEvent.Tick |
createSleepingEventTick(Game game,
Cause cause,
BlockSnapshot bed,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static SmeltEvent |
createSmeltEvent(Game game,
Cause cause,
ItemStackSnapshot fuel,
Furnace targetTile)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static SmeltEvent.ConsumeFuel |
createSmeltEventConsumeFuel(Game game,
Cause cause,
ItemStackSnapshot fuel,
Inventory targetInventory,
Furnace targetTile,
List<Transaction<ItemStackSnapshot>> transactions)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static SmeltEvent.Finish |
createSmeltEventFinish(Game game,
Cause cause,
ItemStackSnapshot fuel,
List<ItemStackSnapshot> smeltedItems,
Furnace targetTile)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static SmeltEvent.Interrupt |
createSmeltEventInterrupt(Game game,
Cause cause,
ItemStackSnapshot fuel,
List<ItemStackSnapshot> smeltedItems,
Furnace targetTile)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static SmeltEvent.Start |
createSmeltEventStart(Game game,
Cause cause,
ItemStackSnapshot fuel,
Inventory targetInventory,
Furnace targetTile,
List<Transaction<ItemStackSnapshot>> transactions)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static SmeltEvent.Tick |
createSmeltEventTick(Game game,
Cause cause,
ItemStackSnapshot fuel,
Inventory targetInventory,
Furnace targetTile,
List<Transaction<ItemStackSnapshot>> transactions)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static SpawnEntityEvent |
createSpawnEntityEvent(Game game,
Cause cause,
List<Entity> entities,
List<EntitySnapshot> entitySnapshots,
World targetWorld)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static SpawnEntityEvent.ChunkLoad |
createSpawnEntityEventChunkLoad(Game game,
Cause cause,
List<Entity> entities,
List<EntitySnapshot> entitySnapshots,
World targetWorld)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static SpawnEntityEvent.Custom |
createSpawnEntityEventCustom(Game game,
Cause cause,
List<Entity> entities,
List<EntitySnapshot> entitySnapshots,
World targetWorld)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static SpawnEntityEvent.Spawner |
createSpawnEntityEventSpawner(Game game,
Cause cause,
List<Entity> entities,
List<EntitySnapshot> entitySnapshots,
World targetWorld)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static TabCompleteCommandEvent |
createTabCompleteCommandEvent(Game game,
Cause cause,
String arguments,
String command,
List<String> tabCompletions)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static TameEntityEvent |
createTameEntityEvent(Game game,
Cause cause,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static TargetBlockEvent |
createTargetBlockEvent(Game game,
BlockSnapshot targetBlock)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static TargetChunkEvent |
createTargetChunkEvent(Game game,
Chunk targetChunk)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static TargetContainerEvent |
createTargetContainerEvent(Game game,
Container targetContainer)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static TargetEntityEvent |
createTargetEntityEvent(Game game,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static TargetHumanEvent |
createTargetHumanEvent(Game game,
Human targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static TargetInventoryEvent |
createTargetInventoryEvent(Game game,
Inventory targetInventory)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static TargetItemEvent |
createTargetItemEvent(Game game,
Item targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static TargetLivingEvent |
createTargetLivingEvent(Game game,
Living targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static TargetPlayerEvent |
createTargetPlayerEvent(Game game,
Player targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static TargetProjectileEvent |
createTargetProjectileEvent(Game game,
Projectile targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static TargetTileEntityEvent |
createTargetTileEntityEvent(Game game,
TileEntity targetTile)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static TargetUserEvent |
createTargetUserEvent(User targetUser)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static TargetWorldEvent |
createTargetWorldEvent(Game game,
World targetWorld)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static TickBlockEvent |
createTickBlockEvent(Game game,
Cause cause,
BlockSnapshot targetBlock)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static UnforcedChunkEvent |
createUnforcedChunkEvent(Game game,
Cause cause,
com.flowpowered.math.vector.Vector3i chunkCoords,
ChunkLoadService.LoadingTicket ticket)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static UnleashEntityEvent |
createUnleashEntityEvent(Game game,
Cause cause,
Entity targetEntity)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static UnloadChunkEvent |
createUnloadChunkEvent(Game game,
Cause cause,
Chunk targetChunk)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static UnloadWorldEvent |
createUnloadWorldEvent(Game game,
Cause cause,
World targetWorld)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static UseItemStackEvent |
createUseItemStackEvent(Game game,
Cause cause,
int originalRemainingDuration,
int remainingDuration,
Transaction<ItemStackSnapshot> itemStackInUse)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static UseItemStackEvent.Finish |
createUseItemStackEventFinish(Game game,
Cause cause,
int originalRemainingDuration,
int remainingDuration,
Transaction<ItemStackSnapshot> itemStackInUse,
Transaction<ItemStackSnapshot> itemStackResult)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static UseItemStackEvent.Start |
createUseItemStackEventStart(Game game,
Cause cause,
int originalRemainingDuration,
int remainingDuration,
Transaction<ItemStackSnapshot> itemStackInUse)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static UseItemStackEvent.Stop |
createUseItemStackEventStop(Game game,
Cause cause,
int originalRemainingDuration,
int remainingDuration,
Transaction<ItemStackSnapshot> itemStackInUse)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
static UseItemStackEvent.Tick |
createUseItemStackEventTick(Game game,
Cause cause,
int originalRemainingDuration,
int remainingDuration,
Transaction<ItemStackSnapshot> itemStackInUse)
AUTOMATICALLY GENERATED, DO NOT EDIT.
|
public static Event createEvent()
Event
.public static GameEvent createGameEvent(Game game)
GameEvent
.game
- The gamepublic static GrantAchievementEvent createGrantAchievementEvent(Game game, Cause cause, Text originalMessage, Text message, MessageSink originalSink, MessageSink sink, Achievement achievement)
GrantAchievementEvent
.game
- The gamecause
- The causeoriginalMessage
- The original messagemessage
- The messageoriginalSink
- The original sinksink
- The sinkachievement
- The achievementpublic static GrantAchievementEvent.TargetPlayer createGrantAchievementEventTargetPlayer(Game game, Cause cause, Text originalMessage, Text message, MessageSink originalSink, MessageSink sink, Achievement achievement, Player targetEntity)
GrantAchievementEvent.TargetPlayer
.game
- The gamecause
- The causeoriginalMessage
- The original messagemessage
- The messageoriginalSink
- The original sinksink
- The sinkachievement
- The achievementtargetEntity
- The target entitypublic static FishingEvent createFishingEvent(Game game, Cause cause, EntitySnapshot originalFishHook, FishHook fishHook)
FishingEvent
.game
- The gamecause
- The causeoriginalFishHook
- The original fish hookfishHook
- The fish hookpublic static FishingEvent.Finish createFishingEventFinish(Game game, Cause cause, EntitySnapshot originalFishHook, FishHook fishHook)
FishingEvent.Finish
.game
- The gamecause
- The causeoriginalFishHook
- The original fish hookfishHook
- The fish hookpublic static FishingEvent.Hook createFishingEventHook(Game game, Cause cause, EntitySnapshot originalFishHook, FishHook fishHook, EntitySnapshot originalHookedEntity, Optional<Entity> hookedEntity, Entity targetEntity)
FishingEvent.Hook
.game
- The gamecause
- The causeoriginalFishHook
- The original fish hookfishHook
- The fish hookoriginalHookedEntity
- The original hooked entityhookedEntity
- The hooked entitytargetEntity
- The target entitypublic static FishingEvent.Start createFishingEventStart(Game game, Cause cause, EntitySnapshot originalFishHook, FishHook fishHook)
FishingEvent.Start
.game
- The gamecause
- The causeoriginalFishHook
- The original fish hookfishHook
- The fish hookpublic static FishingEvent.Stop createFishingEventStop(Game game, Cause cause, Optional<EntitySnapshot> originalCaughtEntity, Optional<Entity> caughtEntity, int originalExperience, int experience, EntitySnapshot originalFishHook, FishHook fishHook, Optional<Transaction<ItemStackSnapshot>> itemStackTransaction, Entity targetEntity)
FishingEvent.Stop
.game
- The gamecause
- The causeoriginalCaughtEntity
- The original caught entitycaughtEntity
- The caught entityoriginalExperience
- The original experienceexperience
- The experienceoriginalFishHook
- The original fish hookfishHook
- The fish hookitemStackTransaction
- The item stack transactiontargetEntity
- The target entitypublic static InteractEvent createInteractEvent(Game game, Cause cause, Optional<com.flowpowered.math.vector.Vector3d> interactionPoint)
InteractEvent
.game
- The gamecause
- The causeinteractionPoint
- The interaction pointpublic static LightningEvent createLightningEvent(Game game, Cause cause)
LightningEvent
.game
- The gamecause
- The causepublic static LightningEvent.Post createLightningEventPost(Game game, Cause cause)
LightningEvent.Post
.game
- The gamecause
- The causepublic static LightningEvent.Pre createLightningEventPre(Game game, Cause cause)
LightningEvent.Pre
.game
- The gamecause
- The causepublic static LightningEvent.Strike createLightningEventStrike(Game game, Cause cause, List<Entity> entities, List<EntitySnapshot> entitySnapshots, World targetWorld, List<Transaction<BlockSnapshot>> transactions)
LightningEvent.Strike
.game
- The gamecause
- The causeentities
- The entitiesentitySnapshots
- The entity snapshotstargetWorld
- The target worldtransactions
- The transactionspublic static MessageEvent createMessageEvent(Game game, Cause cause, Text originalMessage, Text message)
MessageEvent
.game
- The gamecause
- The causeoriginalMessage
- The original messagemessage
- The messagepublic static SleepingEvent createSleepingEvent(Game game, Cause cause, BlockSnapshot bed, Entity targetEntity)
SleepingEvent
.game
- The gamecause
- The causebed
- The bedtargetEntity
- The target entitypublic static SleepingEvent.Finish createSleepingEventFinish(Game game, Cause cause, BlockSnapshot bed, Entity targetEntity)
SleepingEvent.Finish
.game
- The gamecause
- The causebed
- The bedtargetEntity
- The target entitypublic static SleepingEvent.Post createSleepingEventPost(Game game, Cause cause, BlockSnapshot bed, Optional<Transform<World>> spawnTransform, Entity targetEntity, boolean spawnSet)
SleepingEvent.Post
.game
- The gamecause
- The causebed
- The bedspawnTransform
- The spawn transformtargetEntity
- The target entityspawnSet
- The spawn setpublic static SleepingEvent.Pre createSleepingEventPre(Game game, Cause cause, BlockSnapshot bed, Entity targetEntity)
SleepingEvent.Pre
.game
- The gamecause
- The causebed
- The bedtargetEntity
- The target entitypublic static SleepingEvent.Tick createSleepingEventTick(Game game, Cause cause, BlockSnapshot bed, Entity targetEntity)
SleepingEvent.Tick
.game
- The gamecause
- The causebed
- The bedtargetEntity
- The target entitypublic static ChangeBlockEvent createChangeBlockEvent(Game game, Cause cause, World targetWorld, List<Transaction<BlockSnapshot>> transactions)
ChangeBlockEvent
.game
- The gamecause
- The causetargetWorld
- The target worldtransactions
- The transactionspublic static ChangeBlockEvent.Break createChangeBlockEventBreak(Game game, Cause cause, World targetWorld, List<Transaction<BlockSnapshot>> transactions)
ChangeBlockEvent.Break
.game
- The gamecause
- The causetargetWorld
- The target worldtransactions
- The transactionspublic static ChangeBlockEvent.Decay createChangeBlockEventDecay(Game game, Cause cause, World targetWorld, List<Transaction<BlockSnapshot>> transactions)
ChangeBlockEvent.Decay
.game
- The gamecause
- The causetargetWorld
- The target worldtransactions
- The transactionspublic static ChangeBlockEvent.Fluid createChangeBlockEventFluid(Game game, Cause cause, World targetWorld, List<Transaction<BlockSnapshot>> transactions)
ChangeBlockEvent.Fluid
.game
- The gamecause
- The causetargetWorld
- The target worldtransactions
- The transactionspublic static ChangeBlockEvent.Grow createChangeBlockEventGrow(Game game, Cause cause, World targetWorld, List<Transaction<BlockSnapshot>> transactions)
ChangeBlockEvent.Grow
.game
- The gamecause
- The causetargetWorld
- The target worldtransactions
- The transactionspublic static ChangeBlockEvent.Modify createChangeBlockEventModify(Game game, Cause cause, World targetWorld, List<Transaction<BlockSnapshot>> transactions)
ChangeBlockEvent.Modify
.game
- The gamecause
- The causetargetWorld
- The target worldtransactions
- The transactionspublic static ChangeBlockEvent.Place createChangeBlockEventPlace(Game game, Cause cause, World targetWorld, List<Transaction<BlockSnapshot>> transactions)
ChangeBlockEvent.Place
.game
- The gamecause
- The causetargetWorld
- The target worldtransactions
- The transactionspublic static ChangeBlockEvent.Post createChangeBlockEventPost(Game game, Cause cause, World targetWorld, List<Transaction<BlockSnapshot>> transactions)
ChangeBlockEvent.Post
.game
- The gamecause
- The causetargetWorld
- The target worldtransactions
- The transactionspublic static CollideBlockEvent createCollideBlockEvent(Game game, Cause cause, BlockState targetBlock, Location<World> targetLocation, Direction targetSide)
CollideBlockEvent
.game
- The gamecause
- The causetargetBlock
- The target blocktargetLocation
- The target locationtargetSide
- The target sidepublic static DecayBlockEvent createDecayBlockEvent(Game game, Cause cause, World targetWorld, List<Transaction<BlockSnapshot>> transactions)
DecayBlockEvent
.game
- The gamecause
- The causetargetWorld
- The target worldtransactions
- The transactionspublic static GrowBlockEvent createGrowBlockEvent(Game game, Cause cause, World targetWorld, List<Transaction<BlockSnapshot>> transactions)
GrowBlockEvent
.game
- The gamecause
- The causetargetWorld
- The target worldtransactions
- The transactionspublic static InteractBlockEvent createInteractBlockEvent(Game game, Cause cause, Optional<com.flowpowered.math.vector.Vector3d> interactionPoint, BlockSnapshot targetBlock, Direction targetSide)
InteractBlockEvent
.game
- The gamecause
- The causeinteractionPoint
- The interaction pointtargetBlock
- The target blocktargetSide
- The target sidepublic static InteractBlockEvent.Primary createInteractBlockEventPrimary(Game game, Cause cause, Optional<com.flowpowered.math.vector.Vector3d> interactionPoint, BlockSnapshot targetBlock, Direction targetSide)
InteractBlockEvent.Primary
.game
- The gamecause
- The causeinteractionPoint
- The interaction pointtargetBlock
- The target blocktargetSide
- The target sidepublic static InteractBlockEvent.Secondary createInteractBlockEventSecondary(Game game, Cause cause, Optional<com.flowpowered.math.vector.Vector3d> interactionPoint, BlockSnapshot targetBlock, Direction targetSide)
InteractBlockEvent.Secondary
.game
- The gamecause
- The causeinteractionPoint
- The interaction pointtargetBlock
- The target blocktargetSide
- The target sidepublic static MoveBlockEvent createMoveBlockEvent(Game game, Cause cause, World targetWorld, List<Transaction<BlockSnapshot>> transactions)
MoveBlockEvent
.game
- The gamecause
- The causetargetWorld
- The target worldtransactions
- The transactionspublic static NotifyNeighborBlockEvent createNotifyNeighborBlockEvent(Game game, Cause cause, Map<Direction,BlockState> originalNeighbors, Map<Direction,BlockState> neighbors)
NotifyNeighborBlockEvent
.game
- The gamecause
- The causeoriginalNeighbors
- The original neighborsneighbors
- The neighborspublic static TargetBlockEvent createTargetBlockEvent(Game game, BlockSnapshot targetBlock)
TargetBlockEvent
.game
- The gametargetBlock
- The target blockpublic static TickBlockEvent createTickBlockEvent(Game game, Cause cause, BlockSnapshot targetBlock)
TickBlockEvent
.game
- The gamecause
- The causetargetBlock
- The target blockpublic static BrewingEvent createBrewingEvent(Game game, Cause cause, ItemStackSnapshot ingredient, BrewingStand targetTile)
BrewingEvent
.game
- The gamecause
- The causeingredient
- The ingredienttargetTile
- The target tilepublic static BrewingEvent.Finish createBrewingEventFinish(Game game, Cause cause, List<ItemStackSnapshot> brewedItemStacks, ItemStackSnapshot ingredient, BrewingStand targetTile)
BrewingEvent.Finish
.game
- The gamecause
- The causebrewedItemStacks
- The brewed item stacksingredient
- The ingredienttargetTile
- The target tilepublic static BrewingEvent.Interrupt createBrewingEventInterrupt(Game game, Cause cause, List<ItemStackSnapshot> brewedItemStacks, ItemStackSnapshot ingredient, BrewingStand targetTile)
BrewingEvent.Interrupt
.game
- The gamecause
- The causebrewedItemStacks
- The brewed item stacksingredient
- The ingredienttargetTile
- The target tilepublic static BrewingEvent.Start createBrewingEventStart(Game game, Cause cause, ItemStackSnapshot ingredient, Inventory targetInventory, BrewingStand targetTile, List<Transaction<ItemStackSnapshot>> transactions)
BrewingEvent.Start
.game
- The gamecause
- The causeingredient
- The ingredienttargetInventory
- The target inventorytargetTile
- The target tiletransactions
- The transactionspublic static BrewingEvent.Tick createBrewingEventTick(Game game, Cause cause, ItemStackSnapshot ingredient, Inventory targetInventory, BrewingStand targetTile, List<Transaction<ItemStackSnapshot>> transactions)
BrewingEvent.Tick
.game
- The gamecause
- The causeingredient
- The ingredienttargetInventory
- The target inventorytargetTile
- The target tiletransactions
- The transactionspublic static ChangeSignEvent createChangeSignEvent(Game game, Cause cause, ImmutableSignData originalText, SignData text, Sign targetTile)
ChangeSignEvent
.game
- The gamecause
- The causeoriginalText
- The original texttext
- The texttargetTile
- The target tilepublic static SmeltEvent createSmeltEvent(Game game, Cause cause, ItemStackSnapshot fuel, Furnace targetTile)
SmeltEvent
.game
- The gamecause
- The causefuel
- The fueltargetTile
- The target tilepublic static SmeltEvent.ConsumeFuel createSmeltEventConsumeFuel(Game game, Cause cause, ItemStackSnapshot fuel, Inventory targetInventory, Furnace targetTile, List<Transaction<ItemStackSnapshot>> transactions)
SmeltEvent.ConsumeFuel
.game
- The gamecause
- The causefuel
- The fueltargetInventory
- The target inventorytargetTile
- The target tiletransactions
- The transactionspublic static SmeltEvent.Finish createSmeltEventFinish(Game game, Cause cause, ItemStackSnapshot fuel, List<ItemStackSnapshot> smeltedItems, Furnace targetTile)
SmeltEvent.Finish
.game
- The gamecause
- The causefuel
- The fuelsmeltedItems
- The smelted itemstargetTile
- The target tilepublic static SmeltEvent.Interrupt createSmeltEventInterrupt(Game game, Cause cause, ItemStackSnapshot fuel, List<ItemStackSnapshot> smeltedItems, Furnace targetTile)
SmeltEvent.Interrupt
.game
- The gamecause
- The causefuel
- The fuelsmeltedItems
- The smelted itemstargetTile
- The target tilepublic static SmeltEvent.Start createSmeltEventStart(Game game, Cause cause, ItemStackSnapshot fuel, Inventory targetInventory, Furnace targetTile, List<Transaction<ItemStackSnapshot>> transactions)
SmeltEvent.Start
.game
- The gamecause
- The causefuel
- The fueltargetInventory
- The target inventorytargetTile
- The target tiletransactions
- The transactionspublic static SmeltEvent.Tick createSmeltEventTick(Game game, Cause cause, ItemStackSnapshot fuel, Inventory targetInventory, Furnace targetTile, List<Transaction<ItemStackSnapshot>> transactions)
SmeltEvent.Tick
.game
- The gamecause
- The causefuel
- The fueltargetInventory
- The target inventorytargetTile
- The target tiletransactions
- The transactionspublic static TargetTileEntityEvent createTargetTileEntityEvent(Game game, TileEntity targetTile)
TargetTileEntityEvent
.game
- The gametargetTile
- The target tilepublic static MessageSinkEvent createMessageSinkEvent(Game game, Cause cause, Text originalMessage, Text message, MessageSink originalSink, MessageSink sink)
MessageSinkEvent
.game
- The gamecause
- The causeoriginalMessage
- The original messagemessage
- The messageoriginalSink
- The original sinksink
- The sinkpublic static MessageSinkEvent.Chat createMessageSinkEventChat(Game game, Cause cause, Text originalMessage, Text message, MessageSink originalSink, MessageSink sink, Text rawMessage)
MessageSinkEvent.Chat
.game
- The gamecause
- The causeoriginalMessage
- The original messagemessage
- The messageoriginalSink
- The original sinksink
- The sinkrawMessage
- The raw messagepublic static SendCommandEvent createSendCommandEvent(Game game, Cause cause, String arguments, String command, CommandResult result)
SendCommandEvent
.game
- The gamecause
- The causearguments
- The argumentscommand
- The commandresult
- The resultpublic static TabCompleteCommandEvent createTabCompleteCommandEvent(Game game, Cause cause, String arguments, String command, List<String> tabCompletions)
TabCompleteCommandEvent
.game
- The gamecause
- The causearguments
- The argumentscommand
- The commandtabCompletions
- The tab completionspublic static ChangeDataHolderEvent createChangeDataHolderEvent(Game game, DataHolder targetHolder)
ChangeDataHolderEvent
.game
- The gametargetHolder
- The target holderpublic static ChangeDataHolderEvent.ValueChange createChangeDataHolderEventValueChange(Game game, DataTransactionResult originalChanges, DataHolder targetHolder)
ChangeDataHolderEvent.ValueChange
.game
- The gameoriginalChanges
- The original changestargetHolder
- The target holderpublic static AffectEntityEvent createAffectEntityEvent(Game game, Cause cause, List<Entity> entities, List<EntitySnapshot> entitySnapshots, World targetWorld)
AffectEntityEvent
.game
- The gamecause
- The causeentities
- The entitiesentitySnapshots
- The entity snapshotstargetWorld
- The target worldpublic static BreedEntityEvent createBreedEntityEvent(Game game, Cause cause, Optional<com.flowpowered.math.vector.Vector3d> interactionPoint, Entity targetEntity)
BreedEntityEvent
.game
- The gamecause
- The causeinteractionPoint
- The interaction pointtargetEntity
- The target entitypublic static BreedEntityEvent.Breed createBreedEntityEventBreed(Game game, Cause cause, Optional<com.flowpowered.math.vector.Vector3d> interactionPoint, Ageable offspringEntity, Entity targetEntity)
BreedEntityEvent.Breed
.game
- The gamecause
- The causeinteractionPoint
- The interaction pointoffspringEntity
- The offspring entitytargetEntity
- The target entitypublic static BreedEntityEvent.FindMate createBreedEntityEventFindMate(Game game, Cause cause, TristateResult.Result originalResult, TristateResult.Result result, Optional<com.flowpowered.math.vector.Vector3d> interactionPoint, Entity targetEntity, boolean hasAllowResult)
BreedEntityEvent.FindMate
.game
- The gamecause
- The causeoriginalResult
- The original resultresult
- The resultinteractionPoint
- The interaction pointtargetEntity
- The target entityhasAllowResult
- The has allow resultpublic static ChangeEntityEquipmentEvent createChangeEntityEquipmentEvent(Game game, Optional<ItemStackSnapshot> originalItemStack, Optional<Transaction<ItemStackSnapshot>> itemStack, Entity targetEntity, Slot targetInventory)
ChangeEntityEquipmentEvent
.game
- The gameoriginalItemStack
- The original item stackitemStack
- The item stacktargetEntity
- The target entitytargetInventory
- The target inventorypublic static ChangeEntityEquipmentEvent.TargetHuman createChangeEntityEquipmentEventTargetHuman(Game game, Optional<ItemStackSnapshot> originalItemStack, Optional<Transaction<ItemStackSnapshot>> itemStack, Human targetEntity, Slot targetInventory)
ChangeEntityEquipmentEvent.TargetHuman
.game
- The gameoriginalItemStack
- The original item stackitemStack
- The item stacktargetEntity
- The target entitytargetInventory
- The target inventorypublic static ChangeEntityEquipmentEvent.TargetLiving createChangeEntityEquipmentEventTargetLiving(Game game, Optional<ItemStackSnapshot> originalItemStack, Optional<Transaction<ItemStackSnapshot>> itemStack, Living targetEntity, Slot targetInventory)
ChangeEntityEquipmentEvent.TargetLiving
.game
- The gameoriginalItemStack
- The original item stackitemStack
- The item stacktargetEntity
- The target entitytargetInventory
- The target inventorypublic static ChangeEntityEquipmentEvent.TargetPlayer createChangeEntityEquipmentEventTargetPlayer(Game game, Optional<ItemStackSnapshot> originalItemStack, Optional<Transaction<ItemStackSnapshot>> itemStack, Player targetEntity, Slot targetInventory)
ChangeEntityEquipmentEvent.TargetPlayer
.game
- The gameoriginalItemStack
- The original item stackitemStack
- The item stacktargetEntity
- The target entitytargetInventory
- The target inventorypublic static ChangeEntityExperienceEvent createChangeEntityExperienceEvent(Game game, Cause cause, int originalExperience, int experience, Entity targetEntity)
ChangeEntityExperienceEvent
.game
- The gamecause
- The causeoriginalExperience
- The original experienceexperience
- The experiencetargetEntity
- The target entitypublic static ChangeEntityPotionEffectEvent createChangeEntityPotionEffectEvent(Game game, Cause cause, List<PotionEffect> currentEffects, PotionEffect potionEffect, Entity targetEntity)
ChangeEntityPotionEffectEvent
.game
- The gamecause
- The causecurrentEffects
- The current effectspotionEffect
- The potion effecttargetEntity
- The target entitypublic static ChangeEntityPotionEffectEvent.Expire createChangeEntityPotionEffectEventExpire(Game game, Cause cause, List<PotionEffect> currentEffects, PotionEffect potionEffect, Entity targetEntity)
ChangeEntityPotionEffectEvent.Expire
.game
- The gamecause
- The causecurrentEffects
- The current effectspotionEffect
- The potion effecttargetEntity
- The target entitypublic static ChangeEntityPotionEffectEvent.Gain createChangeEntityPotionEffectEventGain(Game game, Cause cause, List<PotionEffect> currentEffects, PotionEffect potionEffect, Entity targetEntity)
ChangeEntityPotionEffectEvent.Gain
.game
- The gamecause
- The causecurrentEffects
- The current effectspotionEffect
- The potion effecttargetEntity
- The target entitypublic static ChangeEntityPotionEffectEvent.Remove createChangeEntityPotionEffectEventRemove(Game game, Cause cause, List<PotionEffect> currentEffects, PotionEffect potionEffect, Entity targetEntity)
ChangeEntityPotionEffectEvent.Remove
.game
- The gamecause
- The causecurrentEffects
- The current effectspotionEffect
- The potion effecttargetEntity
- The target entitypublic static CollideEntityEvent createCollideEntityEvent(Game game, Cause cause, List<Entity> originalEntities, List<Entity> entities, World targetWorld)
CollideEntityEvent
.game
- The gamecause
- The causeoriginalEntities
- The original entitiesentities
- The entitiestargetWorld
- The target worldpublic static ConstructEntityEvent createConstructEntityEvent(Game game, Cause cause, EntityType targetType, Transform<World> transform)
ConstructEntityEvent
.game
- The gamecause
- The causetargetType
- The target typetransform
- The transformpublic static ConstructEntityEvent.Post createConstructEntityEventPost(Game game, Cause cause, Entity targetEntity, EntityType targetType, Transform<World> transform)
ConstructEntityEvent.Post
.game
- The gamecause
- The causetargetEntity
- The target entitytargetType
- The target typetransform
- The transformpublic static ConstructEntityEvent.Pre createConstructEntityEventPre(Game game, Cause cause, EntityType targetType, Transform<World> transform)
ConstructEntityEvent.Pre
.game
- The gamecause
- The causetargetType
- The target typetransform
- The transformpublic static DamageEntityEvent createDamageEntityEvent(Game game, Cause cause, List<Tuple<DamageModifier,java.util.function.Function<? super Double,Double>>> originalFunctions, Entity targetEntity, double originalDamage)
DamageEntityEvent
.game
- The gamecause
- The causeoriginalFunctions
- The original functionstargetEntity
- The target entityoriginalDamage
- The original damagepublic static DestructEntityEvent createDestructEntityEvent(Game game, Cause cause, Text originalMessage, Text message, MessageSink originalSink, MessageSink sink, Entity targetEntity)
DestructEntityEvent
.game
- The gamecause
- The causeoriginalMessage
- The original messagemessage
- The messageoriginalSink
- The original sinksink
- The sinktargetEntity
- The target entitypublic static DestructEntityEvent.Death createDestructEntityEventDeath(Game game, Cause cause, Text originalMessage, Text message, MessageSink originalSink, MessageSink sink, Living targetEntity)
DestructEntityEvent.Death
.game
- The gamecause
- The causeoriginalMessage
- The original messagemessage
- The messageoriginalSink
- The original sinksink
- The sinktargetEntity
- The target entitypublic static DismountEntityEvent createDismountEntityEvent(Game game, Cause cause, Entity targetEntity)
DismountEntityEvent
.game
- The gamecause
- The causetargetEntity
- The target entitypublic static DisplaceEntityEvent createDisplaceEntityEvent(Game game, Transform<World> fromTransform, Transform<World> toTransform, Entity targetEntity)
DisplaceEntityEvent
.game
- The gamefromTransform
- The from transformtoTransform
- The to transformtargetEntity
- The target entitypublic static DisplaceEntityEvent.Move createDisplaceEntityEventMove(Game game, Transform<World> fromTransform, Transform<World> toTransform, Entity targetEntity)
DisplaceEntityEvent.Move
.game
- The gamefromTransform
- The from transformtoTransform
- The to transformtargetEntity
- The target entitypublic static DisplaceEntityEvent.Move.TargetHuman createDisplaceEntityEventMoveTargetHuman(Game game, Transform<World> fromTransform, Transform<World> toTransform, Human targetEntity)
DisplaceEntityEvent.Move.TargetHuman
.game
- The gamefromTransform
- The from transformtoTransform
- The to transformtargetEntity
- The target entitypublic static DisplaceEntityEvent.Move.TargetLiving createDisplaceEntityEventMoveTargetLiving(Game game, Transform<World> fromTransform, Transform<World> toTransform, Living targetEntity)
DisplaceEntityEvent.Move.TargetLiving
.game
- The gamefromTransform
- The from transformtoTransform
- The to transformtargetEntity
- The target entitypublic static DisplaceEntityEvent.Move.TargetPlayer createDisplaceEntityEventMoveTargetPlayer(Game game, Transform<World> fromTransform, Transform<World> toTransform, Player targetEntity)
DisplaceEntityEvent.Move.TargetPlayer
.game
- The gamefromTransform
- The from transformtoTransform
- The to transformtargetEntity
- The target entitypublic static DisplaceEntityEvent.TargetHuman createDisplaceEntityEventTargetHuman(Game game, Transform<World> fromTransform, Transform<World> toTransform, Human targetEntity)
DisplaceEntityEvent.TargetHuman
.game
- The gamefromTransform
- The from transformtoTransform
- The to transformtargetEntity
- The target entitypublic static DisplaceEntityEvent.TargetLiving createDisplaceEntityEventTargetLiving(Game game, Transform<World> fromTransform, Transform<World> toTransform, Living targetEntity)
DisplaceEntityEvent.TargetLiving
.game
- The gamefromTransform
- The from transformtoTransform
- The to transformtargetEntity
- The target entitypublic static DisplaceEntityEvent.TargetPlayer createDisplaceEntityEventTargetPlayer(Game game, Transform<World> fromTransform, Transform<World> toTransform, Player targetEntity)
DisplaceEntityEvent.TargetPlayer
.game
- The gamefromTransform
- The from transformtoTransform
- The to transformtargetEntity
- The target entitypublic static DisplaceEntityEvent.Teleport createDisplaceEntityEventTeleport(Game game, Cause cause, Transform<World> fromTransform, Transform<World> toTransform, Entity targetEntity, TeleporterAgent teleporterAgent, boolean keepsVelocity)
DisplaceEntityEvent.Teleport
.game
- The gamecause
- The causefromTransform
- The from transformtoTransform
- The to transformtargetEntity
- The target entityteleporterAgent
- The teleporter agentkeepsVelocity
- The keeps velocitypublic static DisplaceEntityEvent.Teleport.TargetHuman createDisplaceEntityEventTeleportTargetHuman(Game game, Cause cause, Transform<World> fromTransform, Transform<World> toTransform, Human targetEntity, TeleporterAgent teleporterAgent, boolean keepsVelocity)
DisplaceEntityEvent.Teleport.TargetHuman
.game
- The gamecause
- The causefromTransform
- The from transformtoTransform
- The to transformtargetEntity
- The target entityteleporterAgent
- The teleporter agentkeepsVelocity
- The keeps velocitypublic static DisplaceEntityEvent.Teleport.TargetLiving createDisplaceEntityEventTeleportTargetLiving(Game game, Cause cause, Transform<World> fromTransform, Transform<World> toTransform, Living targetEntity, TeleporterAgent teleporterAgent, boolean keepsVelocity)
DisplaceEntityEvent.Teleport.TargetLiving
.game
- The gamecause
- The causefromTransform
- The from transformtoTransform
- The to transformtargetEntity
- The target entityteleporterAgent
- The teleporter agentkeepsVelocity
- The keeps velocitypublic static DisplaceEntityEvent.Teleport.TargetPlayer createDisplaceEntityEventTeleportTargetPlayer(Game game, Cause cause, Transform<World> fromTransform, Transform<World> toTransform, Player targetEntity, TeleporterAgent teleporterAgent, boolean keepsVelocity)
DisplaceEntityEvent.Teleport.TargetPlayer
.game
- The gamecause
- The causefromTransform
- The from transformtoTransform
- The to transformtargetEntity
- The target entityteleporterAgent
- The teleporter agentkeepsVelocity
- The keeps velocitypublic static ExpireEntityEvent createExpireEntityEvent(Game game, Cause cause, Entity targetEntity)
ExpireEntityEvent
.game
- The gamecause
- The causetargetEntity
- The target entitypublic static ExpireEntityEvent.TargetItem createExpireEntityEventTargetItem(Game game, Cause cause, Item targetEntity)
ExpireEntityEvent.TargetItem
.game
- The gamecause
- The causetargetEntity
- The target entitypublic static HarvestEntityEvent createHarvestEntityEvent(Game game, Cause cause, int originalExperience, int experience, Entity targetEntity)
HarvestEntityEvent
.game
- The gamecause
- The causeoriginalExperience
- The original experienceexperience
- The experiencetargetEntity
- The target entitypublic static HarvestEntityEvent.TargetHuman createHarvestEntityEventTargetHuman(Game game, Cause cause, int originalExperience, int experience, Human targetEntity)
HarvestEntityEvent.TargetHuman
.game
- The gamecause
- The causeoriginalExperience
- The original experienceexperience
- The experiencetargetEntity
- The target entitypublic static HarvestEntityEvent.TargetLiving createHarvestEntityEventTargetLiving(Game game, Cause cause, int originalExperience, int experience, Living targetEntity)
HarvestEntityEvent.TargetLiving
.game
- The gamecause
- The causeoriginalExperience
- The original experienceexperience
- The experiencetargetEntity
- The target entitypublic static HarvestEntityEvent.TargetPlayer createHarvestEntityEventTargetPlayer(Game game, Cause cause, int originalExperience, int experience, Player targetEntity, boolean keepsInventory, boolean keepsLevel, int level)
HarvestEntityEvent.TargetPlayer
.game
- The gamecause
- The causeoriginalExperience
- The original experienceexperience
- The experiencetargetEntity
- The target entitykeepsInventory
- The keeps inventorykeepsLevel
- The keeps levellevel
- The levelpublic static HealEntityEvent createHealEntityEvent(Game game, Cause cause, List<Tuple<HealthModifier,java.util.function.Function<? super Double,Double>>> originalFunctions, Entity targetEntity, double originalHealAmount)
HealEntityEvent
.game
- The gamecause
- The causeoriginalFunctions
- The original functionstargetEntity
- The target entityoriginalHealAmount
- The original heal amountpublic static IgniteEntityEvent createIgniteEntityEvent(Game game, Cause cause, int originalFireTicks, int fireTicks, Entity targetEntity)
IgniteEntityEvent
.game
- The gamecause
- The causeoriginalFireTicks
- The original fire ticksfireTicks
- The fire tickstargetEntity
- The target entitypublic static InteractEntityEvent createInteractEntityEvent(Game game, Cause cause, Optional<com.flowpowered.math.vector.Vector3d> interactionPoint, Entity targetEntity)
InteractEntityEvent
.game
- The gamecause
- The causeinteractionPoint
- The interaction pointtargetEntity
- The target entitypublic static InteractEntityEvent.Primary createInteractEntityEventPrimary(Game game, Cause cause, Optional<com.flowpowered.math.vector.Vector3d> interactionPoint, Entity targetEntity)
InteractEntityEvent.Primary
.game
- The gamecause
- The causeinteractionPoint
- The interaction pointtargetEntity
- The target entitypublic static InteractEntityEvent.Secondary createInteractEntityEventSecondary(Game game, Cause cause, Optional<com.flowpowered.math.vector.Vector3d> interactionPoint, Entity targetEntity)
InteractEntityEvent.Secondary
.game
- The gamecause
- The causeinteractionPoint
- The interaction pointtargetEntity
- The target entitypublic static LeashEntityEvent createLeashEntityEvent(Game game, Cause cause, Entity targetEntity)
LeashEntityEvent
.game
- The gamecause
- The causetargetEntity
- The target entitypublic static MountEntityEvent createMountEntityEvent(Game game, Cause cause, Entity targetEntity)
MountEntityEvent
.game
- The gamecause
- The causetargetEntity
- The target entitypublic static SpawnEntityEvent createSpawnEntityEvent(Game game, Cause cause, List<Entity> entities, List<EntitySnapshot> entitySnapshots, World targetWorld)
SpawnEntityEvent
.game
- The gamecause
- The causeentities
- The entitiesentitySnapshots
- The entity snapshotstargetWorld
- The target worldpublic static SpawnEntityEvent.ChunkLoad createSpawnEntityEventChunkLoad(Game game, Cause cause, List<Entity> entities, List<EntitySnapshot> entitySnapshots, World targetWorld)
SpawnEntityEvent.ChunkLoad
.game
- The gamecause
- The causeentities
- The entitiesentitySnapshots
- The entity snapshotstargetWorld
- The target worldpublic static SpawnEntityEvent.Custom createSpawnEntityEventCustom(Game game, Cause cause, List<Entity> entities, List<EntitySnapshot> entitySnapshots, World targetWorld)
SpawnEntityEvent.Custom
.game
- The gamecause
- The causeentities
- The entitiesentitySnapshots
- The entity snapshotstargetWorld
- The target worldpublic static SpawnEntityEvent.Spawner createSpawnEntityEventSpawner(Game game, Cause cause, List<Entity> entities, List<EntitySnapshot> entitySnapshots, World targetWorld)
SpawnEntityEvent.Spawner
.game
- The gamecause
- The causeentities
- The entitiesentitySnapshots
- The entity snapshotstargetWorld
- The target worldpublic static TameEntityEvent createTameEntityEvent(Game game, Cause cause, Entity targetEntity)
TameEntityEvent
.game
- The gamecause
- The causetargetEntity
- The target entitypublic static TargetEntityEvent createTargetEntityEvent(Game game, Entity targetEntity)
TargetEntityEvent
.game
- The gametargetEntity
- The target entitypublic static UnleashEntityEvent createUnleashEntityEvent(Game game, Cause cause, Entity targetEntity)
UnleashEntityEvent
.game
- The gamecause
- The causetargetEntity
- The target entitypublic static ItemMergeItemEvent createItemMergeItemEvent(Game game, Cause cause, Item itemToMerge, Item targetEntity)
ItemMergeItemEvent
.game
- The gamecause
- The causeitemToMerge
- The item to mergetargetEntity
- The target entitypublic static TargetItemEvent createTargetItemEvent(Game game, Item targetEntity)
TargetItemEvent
.game
- The gametargetEntity
- The target entitypublic static TargetLivingEvent createTargetLivingEvent(Game game, Living targetEntity)
TargetLivingEvent
.game
- The gametargetEntity
- The target entitypublic static ChangeGameModeEvent createChangeGameModeEvent(Game game, Cause cause, GameMode originalGameMode, GameMode gameMode)
ChangeGameModeEvent
.game
- The gamecause
- The causeoriginalGameMode
- The original game modegameMode
- The game modepublic static ChangeGameModeEvent.TargetHuman createChangeGameModeEventTargetHuman(Game game, Cause cause, GameMode originalGameMode, GameMode gameMode, Human targetEntity)
ChangeGameModeEvent.TargetHuman
.game
- The gamecause
- The causeoriginalGameMode
- The original game modegameMode
- The game modetargetEntity
- The target entitypublic static ChangeGameModeEvent.TargetPlayer createChangeGameModeEventTargetPlayer(Game game, Cause cause, GameMode originalGameMode, GameMode gameMode, Player targetEntity)
ChangeGameModeEvent.TargetPlayer
.game
- The gamecause
- The causeoriginalGameMode
- The original game modegameMode
- The game modetargetEntity
- The target entitypublic static ChangeLevelEvent createChangeLevelEvent(Game game, Cause cause, int originalLevel, int level)
ChangeLevelEvent
.game
- The gamecause
- The causeoriginalLevel
- The original levellevel
- The levelpublic static ChangeLevelEvent.TargetHuman createChangeLevelEventTargetHuman(Game game, Cause cause, int originalLevel, int level, Human targetEntity)
ChangeLevelEvent.TargetHuman
.game
- The gamecause
- The causeoriginalLevel
- The original levellevel
- The leveltargetEntity
- The target entitypublic static ChangeLevelEvent.TargetPlayer createChangeLevelEventTargetPlayer(Game game, Cause cause, int originalLevel, int level, Player targetEntity)
ChangeLevelEvent.TargetPlayer
.game
- The gamecause
- The causeoriginalLevel
- The original levellevel
- The leveltargetEntity
- The target entitypublic static TargetHumanEvent createTargetHumanEvent(Game game, Human targetEntity)
TargetHumanEvent
.game
- The gametargetEntity
- The target entitypublic static KickPlayerEvent createKickPlayerEvent(Game game, Cause cause, Text originalMessage, Text message, MessageSink originalSink, MessageSink sink, Player targetEntity)
KickPlayerEvent
.game
- The gamecause
- The causeoriginalMessage
- The original messagemessage
- The messageoriginalSink
- The original sinksink
- The sinktargetEntity
- The target entitypublic static ResourcePackStatusEvent createResourcePackStatusEvent(Game game, ResourcePack pack, Player player, ResourcePackStatusEvent.ResourcePackStatus status)
ResourcePackStatusEvent
.game
- The gamepack
- The packplayer
- The playerstatus
- The statuspublic static RespawnPlayerEvent createRespawnPlayerEvent(Game game, Cause cause, Transform<World> fromTransform, Transform<World> toTransform, Player targetEntity, boolean bedSpawn)
RespawnPlayerEvent
.game
- The gamecause
- The causefromTransform
- The from transformtoTransform
- The to transformtargetEntity
- The target entitybedSpawn
- The bed spawnpublic static TargetPlayerEvent createTargetPlayerEvent(Game game, Player targetEntity)
TargetPlayerEvent
.game
- The gametargetEntity
- The target entitypublic static LaunchProjectileEvent createLaunchProjectileEvent(Game game, Cause cause, Projectile targetEntity)
LaunchProjectileEvent
.game
- The gamecause
- The causetargetEntity
- The target entitypublic static TargetProjectileEvent createTargetProjectileEvent(Game game, Projectile targetEntity)
TargetProjectileEvent
.game
- The gametargetEntity
- The target entitypublic static GameAboutToStartServerEvent createGameAboutToStartServerEvent(Game game, GameState state)
GameAboutToStartServerEvent
.game
- The gamestate
- The statepublic static GameConstructionEvent createGameConstructionEvent(Game game, GameState state)
GameConstructionEvent
.game
- The gamestate
- The statepublic static GameInitializationEvent createGameInitializationEvent(Game game, GameState state)
GameInitializationEvent
.game
- The gamestate
- The statepublic static GameLoadCompleteEvent createGameLoadCompleteEvent(Game game, GameState state)
GameLoadCompleteEvent
.game
- The gamestate
- The statepublic static GamePostInitializationEvent createGamePostInitializationEvent(Game game, GameState state)
GamePostInitializationEvent
.game
- The gamestate
- The statepublic static GamePreInitializationEvent createGamePreInitializationEvent(Game game, GameState state)
GamePreInitializationEvent
.game
- The gamestate
- The statepublic static GameStartedServerEvent createGameStartedServerEvent(Game game, GameState state)
GameStartedServerEvent
.game
- The gamestate
- The statepublic static GameStartingServerEvent createGameStartingServerEvent(Game game, GameState state)
GameStartingServerEvent
.game
- The gamestate
- The statepublic static GameStateEvent createGameStateEvent(Game game, GameState state)
GameStateEvent
.game
- The gamestate
- The statepublic static GameStoppedServerEvent createGameStoppedServerEvent(Game game, GameState state)
GameStoppedServerEvent
.game
- The gamestate
- The statepublic static GameStoppingServerEvent createGameStoppingServerEvent(Game game, GameState state)
GameStoppingServerEvent
.game
- The gamestate
- The statepublic static AffectItemStackEvent createAffectItemStackEvent(Game game, Cause cause, Inventory targetInventory, List<Transaction<ItemStackSnapshot>> transactions)
AffectItemStackEvent
.game
- The gamecause
- The causetargetInventory
- The target inventorytransactions
- The transactionspublic static ChangeInventoryEvent createChangeInventoryEvent(Game game, Cause cause, Transaction<ItemStackSnapshot> itemStackTransaction, Optional<ItemStackSnapshot> originalItemStack, Inventory targetInventory)
ChangeInventoryEvent
.game
- The gamecause
- The causeitemStackTransaction
- The item stack transactionoriginalItemStack
- The original item stacktargetInventory
- The target inventorypublic static ChangeInventoryEvent.Click createChangeInventoryEventClick(Game game, Cause cause, Transaction<ItemStackSnapshot> itemStackTransaction, Optional<ItemStackSnapshot> originalItemStack, Inventory targetInventory)
ChangeInventoryEvent.Click
.game
- The gamecause
- The causeitemStackTransaction
- The item stack transactionoriginalItemStack
- The original item stacktargetInventory
- The target inventorypublic static ChangeInventoryEvent.Drag createChangeInventoryEventDrag(Game game, Cause cause, Transaction<ItemStackSnapshot> itemStackTransaction, Optional<ItemStackSnapshot> originalItemStack, Inventory targetInventory)
ChangeInventoryEvent.Drag
.game
- The gamecause
- The causeitemStackTransaction
- The item stack transactionoriginalItemStack
- The original item stacktargetInventory
- The target inventorypublic static ChangeInventoryEvent.Equipment createChangeInventoryEventEquipment(Game game, Cause cause, Transaction<ItemStackSnapshot> itemStackTransaction, Optional<ItemStackSnapshot> originalItemStack, Slot targetInventory)
ChangeInventoryEvent.Equipment
.game
- The gamecause
- The causeitemStackTransaction
- The item stack transactionoriginalItemStack
- The original item stacktargetInventory
- The target inventorypublic static ChangeInventoryEvent.Held createChangeInventoryEventHeld(Game game, Cause cause, Transaction<ItemStackSnapshot> itemStackTransaction, Optional<ItemStackSnapshot> originalItemStack, Slot targetInventory)
ChangeInventoryEvent.Held
.game
- The gamecause
- The causeitemStackTransaction
- The item stack transactionoriginalItemStack
- The original item stacktargetInventory
- The target inventorypublic static ChangeInventoryEvent.Move createChangeInventoryEventMove(Game game, Cause cause, Transaction<ItemStackSnapshot> itemStackTransaction, Optional<ItemStackSnapshot> originalItemStack, Inventory targetInventory)
ChangeInventoryEvent.Move
.game
- The gamecause
- The causeitemStackTransaction
- The item stack transactionoriginalItemStack
- The original item stacktargetInventory
- The target inventorypublic static CraftItemEvent createCraftItemEvent(Game game, Cause cause, Recipe recipe, CraftingInventory targetInventory, List<Transaction<ItemStackSnapshot>> transactions)
CraftItemEvent
.game
- The gamecause
- The causerecipe
- The recipetargetInventory
- The target inventorytransactions
- The transactionspublic static DropItemEvent createDropItemEvent(Game game, Cause cause, List<Entity> entities, List<EntitySnapshot> entitySnapshots, World targetWorld)
DropItemEvent
.game
- The gamecause
- The causeentities
- The entitiesentitySnapshots
- The entity snapshotstargetWorld
- The target worldpublic static DropItemEvent.Custom createDropItemEventCustom(Game game, Cause cause, List<Entity> entities, List<EntitySnapshot> entitySnapshots, World targetWorld)
DropItemEvent.Custom
.game
- The gamecause
- The causeentities
- The entitiesentitySnapshots
- The entity snapshotstargetWorld
- The target worldpublic static DropItemEvent.Destruct createDropItemEventDestruct(Game game, Cause cause, List<Entity> entities, List<EntitySnapshot> entitySnapshots, World targetWorld)
DropItemEvent.Destruct
.game
- The gamecause
- The causeentities
- The entitiesentitySnapshots
- The entity snapshotstargetWorld
- The target worldpublic static DropItemEvent.Dispense createDropItemEventDispense(Game game, Cause cause, List<Entity> entities, List<EntitySnapshot> entitySnapshots, World targetWorld)
DropItemEvent.Dispense
.game
- The gamecause
- The causeentities
- The entitiesentitySnapshots
- The entity snapshotstargetWorld
- The target worldpublic static InteractInventoryEvent createInteractInventoryEvent(Game game, Cause cause, Inventory targetInventory)
InteractInventoryEvent
.game
- The gamecause
- The causetargetInventory
- The target inventorypublic static InteractInventoryEvent.Close createInteractInventoryEventClose(Game game, Cause cause, Inventory targetInventory)
InteractInventoryEvent.Close
.game
- The gamecause
- The causetargetInventory
- The target inventorypublic static InteractInventoryEvent.Open createInteractInventoryEventOpen(Game game, Cause cause, Inventory targetInventory)
InteractInventoryEvent.Open
.game
- The gamecause
- The causetargetInventory
- The target inventorypublic static TargetContainerEvent createTargetContainerEvent(Game game, Container targetContainer)
TargetContainerEvent
.game
- The gametargetContainer
- The target containerpublic static TargetInventoryEvent createTargetInventoryEvent(Game game, Inventory targetInventory)
TargetInventoryEvent
.game
- The gametargetInventory
- The target inventorypublic static UseItemStackEvent createUseItemStackEvent(Game game, Cause cause, int originalRemainingDuration, int remainingDuration, Transaction<ItemStackSnapshot> itemStackInUse)
UseItemStackEvent
.game
- The gamecause
- The causeoriginalRemainingDuration
- The original remaining durationremainingDuration
- The remaining durationitemStackInUse
- The item stack in usepublic static UseItemStackEvent.Finish createUseItemStackEventFinish(Game game, Cause cause, int originalRemainingDuration, int remainingDuration, Transaction<ItemStackSnapshot> itemStackInUse, Transaction<ItemStackSnapshot> itemStackResult)
UseItemStackEvent.Finish
.game
- The gamecause
- The causeoriginalRemainingDuration
- The original remaining durationremainingDuration
- The remaining durationitemStackInUse
- The item stack in useitemStackResult
- The item stack resultpublic static UseItemStackEvent.Start createUseItemStackEventStart(Game game, Cause cause, int originalRemainingDuration, int remainingDuration, Transaction<ItemStackSnapshot> itemStackInUse)
UseItemStackEvent.Start
.game
- The gamecause
- The causeoriginalRemainingDuration
- The original remaining durationremainingDuration
- The remaining durationitemStackInUse
- The item stack in usepublic static UseItemStackEvent.Stop createUseItemStackEventStop(Game game, Cause cause, int originalRemainingDuration, int remainingDuration, Transaction<ItemStackSnapshot> itemStackInUse)
UseItemStackEvent.Stop
.game
- The gamecause
- The causeoriginalRemainingDuration
- The original remaining durationremainingDuration
- The remaining durationitemStackInUse
- The item stack in usepublic static UseItemStackEvent.Tick createUseItemStackEventTick(Game game, Cause cause, int originalRemainingDuration, int remainingDuration, Transaction<ItemStackSnapshot> itemStackInUse)
UseItemStackEvent.Tick
.game
- The gamecause
- The causeoriginalRemainingDuration
- The original remaining durationremainingDuration
- The remaining durationitemStackInUse
- The item stack in usepublic static BanIpEvent createBanIpEvent(Ban.Ip ban)
BanIpEvent
.ban
- The banpublic static ChannelRegistrationEvent createChannelRegistrationEvent(Cause cause, String channel)
ChannelRegistrationEvent
.cause
- The causechannel
- The channelpublic static ChannelRegistrationEvent.Register createChannelRegistrationEventRegister(Cause cause, String channel)
ChannelRegistrationEvent.Register
.cause
- The causechannel
- The channelpublic static ChannelRegistrationEvent.Unregister createChannelRegistrationEventUnregister(Cause cause, String channel)
ChannelRegistrationEvent.Unregister
.cause
- The causechannel
- The channelpublic static ClientConnectionEvent createClientConnectionEvent(Game game)
ClientConnectionEvent
.game
- The gamepublic static ClientConnectionEvent.Auth createClientConnectionEventAuth(Game game, Cause cause, Text originalMessage, Text message, MessageSink originalSink, MessageSink sink, RemoteConnection connection, GameProfile profile)
ClientConnectionEvent.Auth
.game
- The gamecause
- The causeoriginalMessage
- The original messagemessage
- The messageoriginalSink
- The original sinksink
- The sinkconnection
- The connectionprofile
- The profilepublic static ClientConnectionEvent.Disconnect createClientConnectionEventDisconnect(Game game, Cause cause, Text originalMessage, Text message, MessageSink originalSink, MessageSink sink, Player targetEntity)
ClientConnectionEvent.Disconnect
.game
- The gamecause
- The causeoriginalMessage
- The original messagemessage
- The messageoriginalSink
- The original sinksink
- The sinktargetEntity
- The target entitypublic static ClientConnectionEvent.Join createClientConnectionEventJoin(Game game, Cause cause, Text originalMessage, Text message, MessageSink originalSink, MessageSink sink, Player targetEntity)
ClientConnectionEvent.Join
.game
- The gamecause
- The causeoriginalMessage
- The original messagemessage
- The messageoriginalSink
- The original sinksink
- The sinktargetEntity
- The target entitypublic static ClientConnectionEvent.Login createClientConnectionEventLogin(Game game, Cause cause, Text originalMessage, Text message, MessageSink originalSink, MessageSink sink, Transform<World> fromTransform, Transform<World> toTransform, RemoteConnection connection, GameProfile profile)
ClientConnectionEvent.Login
.game
- The gamecause
- The causeoriginalMessage
- The original messagemessage
- The messageoriginalSink
- The original sinksink
- The sinkfromTransform
- The from transformtoTransform
- The to transformconnection
- The connectionprofile
- The profilepublic static PardonIpEvent createPardonIpEvent(Ban.Ip ban)
PardonIpEvent
.ban
- The banpublic static RconConnectionEvent createRconConnectionEvent(RconSource source)
RconConnectionEvent
.source
- The sourcepublic static RconConnectionEvent.Connect createRconConnectionEventConnect(RconSource source)
RconConnectionEvent.Connect
.source
- The sourcepublic static RconConnectionEvent.Disconnect createRconConnectionEventDisconnect(RconSource source)
RconConnectionEvent.Disconnect
.source
- The sourcepublic static RconConnectionEvent.Login createRconConnectionEventLogin(RconSource source)
RconConnectionEvent.Login
.source
- The sourcepublic static ClientPingServerEvent createClientPingServerEvent(StatusClient client, ClientPingServerEvent.Response response)
ClientPingServerEvent
.client
- The clientresponse
- The responsepublic static ClientPingServerEvent.Response createClientPingServerEventResponse(Text description, Optional<Favicon> favicon, Optional<ClientPingServerEvent.Response.Players> players, MinecraftVersion version)
ClientPingServerEvent.Response
.description
- The descriptionfavicon
- The faviconplayers
- The playersversion
- The versionpublic static ClientPingServerEvent.Response.Players createClientPingServerEventResponsePlayers(List<GameProfile> profiles, int max, int online)
ClientPingServerEvent.Response.Players
.profiles
- The profilesmax
- The maxonline
- The onlinepublic static QueryServerEvent createQueryServerEvent()
QueryServerEvent
.public static QueryServerEvent.Basic createQueryServerEventBasic(InetSocketAddress address, String gameType, String map, String motd, int maxPlayerCount, int maxSize, int playerCount, int size)
QueryServerEvent.Basic
.address
- The addressgameType
- The game typemap
- The mapmotd
- The motdmaxPlayerCount
- The max player countmaxSize
- The max sizeplayerCount
- The player countsize
- The sizepublic static QueryServerEvent.Full createQueryServerEventFull(InetSocketAddress address, Map<String,String> customValuesMap, String gameId, String gameType, String map, String motd, List<String> players, String plugins, String version, int maxPlayerCount, int maxSize, int playerCount, int size)
QueryServerEvent.Full
.address
- The addresscustomValuesMap
- The custom values mapgameId
- The game idgameType
- The game typemap
- The mapmotd
- The motdplayers
- The playersplugins
- The pluginsversion
- The versionmaxPlayerCount
- The max player countmaxSize
- The max sizeplayerCount
- The player countsize
- The sizepublic static ChangeStatisticEvent createChangeStatisticEvent(Game game, Cause cause, long originalValue, long value, Statistic statistic)
ChangeStatisticEvent
.game
- The gamecause
- The causeoriginalValue
- The original valuevalue
- The valuestatistic
- The statisticpublic static ChangeStatisticEvent.TargetPlayer createChangeStatisticEventTargetPlayer(Game game, Cause cause, long originalValue, long value, Statistic statistic, Player targetEntity)
ChangeStatisticEvent.TargetPlayer
.game
- The gamecause
- The causeoriginalValue
- The original valuevalue
- The valuestatistic
- The statistictargetEntity
- The target entitypublic static BanUserEvent createBanUserEvent(Cause cause, Ban.User ban, User targetUser)
BanUserEvent
.cause
- The causeban
- The bantargetUser
- The target userpublic static BanUserEvent.TargetPlayer createBanUserEventTargetPlayer(Game game, Cause cause, Ban.User ban, Player targetEntity, User targetUser)
BanUserEvent.TargetPlayer
.game
- The gamecause
- The causeban
- The bantargetEntity
- The target entitytargetUser
- The target userpublic static PardonUserEvent createPardonUserEvent(Cause cause, Ban.User ban, User targetUser)
PardonUserEvent
.cause
- The causeban
- The bantargetUser
- The target userpublic static PardonUserEvent.TargetPlayer createPardonUserEventTargetPlayer(Game game, Cause cause, Ban.User ban, Player targetEntity, Player targetUser)
PardonUserEvent.TargetPlayer
.game
- The gamecause
- The causeban
- The bantargetEntity
- The target entitytargetUser
- The target userpublic static TargetUserEvent createTargetUserEvent(User targetUser)
TargetUserEvent
.targetUser
- The target userpublic static ChangeWorldGameRuleEvent createChangeWorldGameRuleEvent(Game game, Cause cause, String originalValue, String value, String name, World targetWorld)
ChangeWorldGameRuleEvent
.game
- The gamecause
- The causeoriginalValue
- The original valuevalue
- The valuename
- The nametargetWorld
- The target worldpublic static ChangeWorldWeatherEvent createChangeWorldWeatherEvent(Game game, Cause cause, int originalDuration, int duration, Weather originalWeather, Weather weather, Weather initialWeather, World targetWorld)
ChangeWorldWeatherEvent
.game
- The gamecause
- The causeoriginalDuration
- The original durationduration
- The durationoriginalWeather
- The original weatherweather
- The weatherinitialWeather
- The initial weathertargetWorld
- The target worldpublic static ConstructPortalEvent createConstructPortalEvent(Game game, Cause cause, Location<World> portalLocation)
ConstructPortalEvent
.game
- The gamecause
- The causeportalLocation
- The portal locationpublic static ConstructWorldEvent createConstructWorldEvent(Game game, Cause cause, WorldCreationSettings worldCreationSettings, WorldProperties worldProperties)
ConstructWorldEvent
.game
- The gamecause
- The causeworldCreationSettings
- The world creation settingsworldProperties
- The world propertiespublic static ExplosionEvent createExplosionEvent(Game game, Cause cause, Explosion explosion, World targetWorld)
ExplosionEvent
.game
- The gamecause
- The causeexplosion
- The explosiontargetWorld
- The target worldpublic static ExplosionEvent.Detonate createExplosionEventDetonate(Game game, Cause cause, List<Entity> entities, List<EntitySnapshot> entitySnapshots, Explosion explosion, World targetWorld, List<Transaction<BlockSnapshot>> transactions)
ExplosionEvent.Detonate
.game
- The gamecause
- The causeentities
- The entitiesentitySnapshots
- The entity snapshotsexplosion
- The explosiontargetWorld
- The target worldtransactions
- The transactionspublic static ExplosionEvent.Post createExplosionEventPost(Game game, Cause cause, Explosion explosion, World targetWorld)
ExplosionEvent.Post
.game
- The gamecause
- The causeexplosion
- The explosiontargetWorld
- The target worldpublic static ExplosionEvent.Pre createExplosionEventPre(Game game, Cause cause, Explosion explosion, World targetWorld)
ExplosionEvent.Pre
.game
- The gamecause
- The causeexplosion
- The explosiontargetWorld
- The target worldpublic static GenerateChunkEvent createGenerateChunkEvent(Game game, Cause cause, Chunk targetChunk)
GenerateChunkEvent
.game
- The gamecause
- The causetargetChunk
- The target chunkpublic static GenerateChunkEvent.Post createGenerateChunkEventPost(Game game, Cause cause, Chunk targetChunk)
GenerateChunkEvent.Post
.game
- The gamecause
- The causetargetChunk
- The target chunkpublic static GenerateChunkEvent.Pre createGenerateChunkEventPre(Game game, Cause cause, Chunk targetChunk)
GenerateChunkEvent.Pre
.game
- The gamecause
- The causetargetChunk
- The target chunkpublic static LoadWorldEvent createLoadWorldEvent(Game game, Cause cause, World targetWorld)
LoadWorldEvent
.game
- The gamecause
- The causetargetWorld
- The target worldpublic static TargetWorldEvent createTargetWorldEvent(Game game, World targetWorld)
TargetWorldEvent
.game
- The gametargetWorld
- The target worldpublic static UnloadWorldEvent createUnloadWorldEvent(Game game, Cause cause, World targetWorld)
UnloadWorldEvent
.game
- The gamecause
- The causetargetWorld
- The target worldpublic static ForcedChunkEvent createForcedChunkEvent(Game game, com.flowpowered.math.vector.Vector3i chunkCoords, Chunk targetChunk, ChunkLoadService.LoadingTicket ticket)
ForcedChunkEvent
.game
- The gamechunkCoords
- The chunk coordstargetChunk
- The target chunkticket
- The ticketpublic static LoadChunkEvent createLoadChunkEvent(Game game, Cause cause, Chunk targetChunk)
LoadChunkEvent
.game
- The gamecause
- The causetargetChunk
- The target chunkpublic static PopulateChunkEvent createPopulateChunkEvent(Game game, Cause cause, Chunk targetChunk)
PopulateChunkEvent
.game
- The gamecause
- The causetargetChunk
- The target chunkpublic static PopulateChunkEvent.Populate createPopulateChunkEventPopulate(Game game, Cause cause, Chunk targetChunk)
PopulateChunkEvent.Populate
.game
- The gamecause
- The causetargetChunk
- The target chunkpublic static PopulateChunkEvent.Post createPopulateChunkEventPost(Game game, Cause cause, Map<PopulatorType,List<Transaction<BlockSnapshot>>> populatedTransactions, Chunk targetChunk)
PopulateChunkEvent.Post
.game
- The gamecause
- The causepopulatedTransactions
- The populated transactionstargetChunk
- The target chunkpublic static PopulateChunkEvent.Pre createPopulateChunkEventPre(Game game, Cause cause, List<Populator> pendingPopulators, Chunk targetChunk)
PopulateChunkEvent.Pre
.game
- The gamecause
- The causependingPopulators
- The pending populatorstargetChunk
- The target chunkpublic static TargetChunkEvent createTargetChunkEvent(Game game, Chunk targetChunk)
TargetChunkEvent
.game
- The gametargetChunk
- The target chunkpublic static UnforcedChunkEvent createUnforcedChunkEvent(Game game, Cause cause, com.flowpowered.math.vector.Vector3i chunkCoords, ChunkLoadService.LoadingTicket ticket)
UnforcedChunkEvent
.game
- The gamecause
- The causechunkCoords
- The chunk coordsticket
- The ticketpublic static UnloadChunkEvent createUnloadChunkEvent(Game game, Cause cause, Chunk targetChunk)
UnloadChunkEvent
.game
- The gamecause
- The causetargetChunk
- The target chunk