-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
250 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
src/main/java/dev/lone/itemsadder/api/Events/campfire/CampfireLitEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package dev.lone.itemsadder.api.Events.campfire; | ||
|
||
import org.bukkit.block.Campfire; | ||
import org.bukkit.entity.Player; | ||
import org.bukkit.event.Cancellable; | ||
import org.bukkit.event.Event; | ||
import org.bukkit.event.HandlerList; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
@SuppressWarnings("unused") | ||
public class CampfireLitEvent extends Event implements Cancellable | ||
{ | ||
private static final HandlerList HANDLERS = new HandlerList(); | ||
|
||
boolean isCancelled; | ||
final Campfire campfire; | ||
final Player player; | ||
|
||
public CampfireLitEvent(@NotNull Campfire campfire, | ||
@NotNull Player player) | ||
{ | ||
this.campfire = campfire; | ||
this.player = player; | ||
} | ||
|
||
@NotNull | ||
@Override | ||
public HandlerList getHandlers() | ||
{ | ||
return HANDLERS; | ||
} | ||
|
||
@Override | ||
public boolean isCancelled() | ||
{ | ||
return this.isCancelled; | ||
} | ||
|
||
@Override | ||
public void setCancelled(boolean b) | ||
{ | ||
this.isCancelled = b; | ||
} | ||
|
||
public Campfire getCampfire() | ||
{ | ||
return campfire; | ||
} | ||
|
||
public Player getPlayer() | ||
{ | ||
return player; | ||
} | ||
} |
73 changes: 73 additions & 0 deletions
73
src/main/java/dev/lone/itemsadder/api/Events/campfire/CampfirePutItemEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
package dev.lone.itemsadder.api.Events.campfire; | ||
|
||
import org.bukkit.block.Campfire; | ||
import org.bukkit.entity.Player; | ||
import org.bukkit.event.Cancellable; | ||
import org.bukkit.event.Event; | ||
import org.bukkit.event.HandlerList; | ||
import org.bukkit.inventory.ItemStack; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
@SuppressWarnings("unused") | ||
public class CampfirePutItemEvent extends Event implements Cancellable | ||
{ | ||
private static final HandlerList HANDLERS = new HandlerList(); | ||
|
||
boolean isCancelled; | ||
final Player player; | ||
ItemStack item; | ||
Campfire campfire; | ||
|
||
public CampfirePutItemEvent(@NotNull Campfire campfire, | ||
@NotNull ItemStack item, | ||
@NotNull Player player) | ||
{ | ||
this.campfire = campfire; | ||
this.item = item; | ||
this.player = player; | ||
} | ||
|
||
@NotNull | ||
@Override | ||
public HandlerList getHandlers() | ||
{ | ||
return HANDLERS; | ||
} | ||
|
||
@Override | ||
public boolean isCancelled() | ||
{ | ||
return this.isCancelled; | ||
} | ||
|
||
@Override | ||
public void setCancelled(boolean b) | ||
{ | ||
this.isCancelled = b; | ||
} | ||
|
||
public static HandlerList getHandlerList() | ||
{ | ||
return HANDLERS; | ||
} | ||
|
||
public Player getPlayer() | ||
{ | ||
return player; | ||
} | ||
|
||
public ItemStack getItem() | ||
{ | ||
return item; | ||
} | ||
|
||
public void setItem(ItemStack item) | ||
{ | ||
this.item = item; | ||
} | ||
|
||
public Campfire getCampfire() | ||
{ | ||
return campfire; | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
src/main/java/dev/lone/itemsadder/api/Events/campfire/CampfireRemoveItemEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
package dev.lone.itemsadder.api.Events.campfire; | ||
|
||
import org.bukkit.block.Campfire; | ||
import org.bukkit.entity.Player; | ||
import org.bukkit.event.Cancellable; | ||
import org.bukkit.event.Event; | ||
import org.bukkit.event.HandlerList; | ||
import org.bukkit.inventory.ItemStack; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
@SuppressWarnings("unused") | ||
public class CampfireRemoveItemEvent extends Event implements Cancellable | ||
{ | ||
private static final HandlerList HANDLERS = new HandlerList(); | ||
|
||
boolean isCancelled; | ||
final Player player; | ||
final ItemStack item; | ||
Campfire campfire; | ||
|
||
public CampfireRemoveItemEvent(@NotNull Campfire campfire, | ||
@NotNull ItemStack item, | ||
@NotNull Player player) | ||
{ | ||
this.campfire = campfire; | ||
this.item = item; | ||
this.player = player; | ||
} | ||
|
||
@NotNull | ||
@Override | ||
public HandlerList getHandlers() | ||
{ | ||
return HANDLERS; | ||
} | ||
|
||
@Override | ||
public boolean isCancelled() | ||
{ | ||
return this.isCancelled; | ||
} | ||
|
||
@Override | ||
public void setCancelled(boolean b) | ||
{ | ||
this.isCancelled = b; | ||
} | ||
|
||
public static HandlerList getHandlerList() | ||
{ | ||
return HANDLERS; | ||
} | ||
|
||
public Player getPlayer() | ||
{ | ||
return player; | ||
} | ||
|
||
public ItemStack getItem() | ||
{ | ||
return item; | ||
} | ||
|
||
public Campfire getCampfire() | ||
{ | ||
return campfire; | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
src/main/java/dev/lone/itemsadder/api/Events/campfire/CampfireUnlitEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package dev.lone.itemsadder.api.Events.campfire; | ||
|
||
import org.bukkit.block.Campfire; | ||
import org.bukkit.entity.Player; | ||
import org.bukkit.event.Cancellable; | ||
import org.bukkit.event.Event; | ||
import org.bukkit.event.HandlerList; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
@SuppressWarnings("unused") | ||
public class CampfireUnlitEvent extends Event implements Cancellable | ||
{ | ||
private static final HandlerList HANDLERS = new HandlerList(); | ||
|
||
boolean isCancelled; | ||
final Campfire campfire; | ||
final Player player; | ||
|
||
public CampfireUnlitEvent(@NotNull Campfire campfire, | ||
@NotNull Player player) | ||
{ | ||
this.campfire = campfire; | ||
this.player = player; | ||
} | ||
|
||
@NotNull | ||
@Override | ||
public HandlerList getHandlers() | ||
{ | ||
return HANDLERS; | ||
} | ||
|
||
@Override | ||
public boolean isCancelled() | ||
{ | ||
return this.isCancelled; | ||
} | ||
|
||
@Override | ||
public void setCancelled(boolean b) | ||
{ | ||
this.isCancelled = b; | ||
} | ||
|
||
public Campfire getCampfire() | ||
{ | ||
return campfire; | ||
} | ||
|
||
public Player getPlayer() | ||
{ | ||
return player; | ||
} | ||
} |