完善事件注解

This commit is contained in:
Light_Quanta 2025-05-04 18:21:47 +08:00
parent a68c4c2c59
commit 366cf0a668
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959
2 changed files with 3 additions and 2 deletions

View file

@ -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;

View file

@ -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;