mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 06:50:12 +01:00
Removed paper comments
This commit is contained in:
parent
a89eef24d8
commit
d56b3b92fb
4 changed files with 3 additions and 9 deletions
|
@ -125,7 +125,7 @@ public interface UnsafeValues {
|
|||
|
||||
@ApiStatus.Internal
|
||||
@Nullable
|
||||
@Deprecated // Paper
|
||||
@Deprecated
|
||||
DamageEffect getDamageEffect(@NotNull String key);
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,7 +6,6 @@ import org.bukkit.Sound;
|
|||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
// Paper start
|
||||
/**
|
||||
* Represents a type of effect that occurs when damage is inflicted. Currently,
|
||||
* effects only determine the sound that plays.
|
||||
|
@ -55,4 +54,3 @@ public enum DamageEffect {
|
|||
return Bukkit.getUnsafe().getSoundForDamageEffect(this);
|
||||
}
|
||||
}
|
||||
// Paper end
|
||||
|
|
|
@ -5,10 +5,8 @@ import org.bukkit.Sound;
|
|||
import org.bukkit.craftbukkit.CraftSound;
|
||||
import org.bukkit.damage.DamageEffect;
|
||||
|
||||
// Paper start
|
||||
@Deprecated
|
||||
public class CraftDamageEffect {
|
||||
// Paper end
|
||||
|
||||
private final DamageEffects damageEffects;
|
||||
|
||||
|
@ -21,7 +19,7 @@ public class CraftDamageEffect {
|
|||
}
|
||||
|
||||
public Sound getSound() {
|
||||
return CraftSound.minecraftToBukkit(this.getHandle().sound()); // Paper
|
||||
return CraftSound.minecraftToBukkit(this.getHandle().sound());
|
||||
}
|
||||
|
||||
public static DamageEffect getById(String id) {
|
||||
|
@ -34,6 +32,6 @@ public class CraftDamageEffect {
|
|||
}
|
||||
|
||||
public static DamageEffect toBukkit(DamageEffects damageEffects) {
|
||||
return CraftDamageType.damageEffectToBukkit(damageEffects); // Paper
|
||||
return CraftDamageType.damageEffectToBukkit(damageEffects);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -98,7 +98,6 @@ public class CraftDamageType implements DamageType, Handleable<net.minecraft.wor
|
|||
};
|
||||
}
|
||||
|
||||
// Paper start
|
||||
public static DamageEffect damageEffectToBukkit(net.minecraft.world.damagesource.DamageEffects damageEffect) {
|
||||
return switch (damageEffect) {
|
||||
case HURT -> DamageEffect.HURT;
|
||||
|
@ -122,7 +121,6 @@ public class CraftDamageType implements DamageType, Handleable<net.minecraft.wor
|
|||
default -> throw new IllegalArgumentException("Bukkit DamageEffect." + damageEffect + " cannot be converted to a NMS DamageEffect");
|
||||
};
|
||||
}
|
||||
// Paper end
|
||||
|
||||
public static DamageType minecraftHolderToBukkit(Holder<net.minecraft.world.damagesource.DamageType> minecraftHolder) {
|
||||
return CraftDamageType.minecraftToBukkit(minecraftHolder.value());
|
||||
|
|
Loading…
Reference in a new issue