完善事件注解
This commit is contained in:
parent
a68c4c2c59
commit
366cf0a668
2 changed files with 3 additions and 2 deletions
|
@ -11,6 +11,7 @@ import org.jetbrains.annotations.ApiStatus;
|
||||||
* 玩家击杀生物后,用于判断是否发送击杀播报/显示击杀指示
|
* 玩家击杀生物后,用于判断是否发送击杀播报/显示击杀指示
|
||||||
*/
|
*/
|
||||||
@ApiStatus.Internal
|
@ApiStatus.Internal
|
||||||
|
@ApiStatus.AvailableSince("0.7.7")
|
||||||
public class PreKillEvent extends Event implements ICancellableEvent {
|
public class PreKillEvent extends Event implements ICancellableEvent {
|
||||||
|
|
||||||
private final Player player;
|
private final Player player;
|
||||||
|
|
|
@ -4,11 +4,11 @@ import com.atsuishio.superbwarfare.item.gun.data.GunData;
|
||||||
import net.minecraft.world.entity.player.Player;
|
import net.minecraft.world.entity.player.Player;
|
||||||
import net.minecraft.world.item.ItemStack;
|
import net.minecraft.world.item.ItemStack;
|
||||||
import net.neoforged.bus.api.Event;
|
import net.neoforged.bus.api.Event;
|
||||||
import net.neoforged.bus.api.ICancellableEvent;
|
|
||||||
import org.jetbrains.annotations.ApiStatus;
|
import org.jetbrains.annotations.ApiStatus;
|
||||||
|
|
||||||
@ApiStatus.Internal
|
@ApiStatus.Internal
|
||||||
public class ReloadEvent extends Event implements ICancellableEvent {
|
@ApiStatus.AvailableSince("0.7.7")
|
||||||
|
public class ReloadEvent extends Event {
|
||||||
|
|
||||||
public final Player player;
|
public final Player player;
|
||||||
public final GunData data;
|
public final GunData data;
|
||||||
|
|
Loading…
Add table
Reference in a new issue