Somehow a bunch of items were missed
This commit is contained in:
@@ -1,28 +1,30 @@
|
||||
--- a/net/minecraft/world/level/block/entity/BeaconBlockEntity.java
|
||||
+++ b/net/minecraft/world/level/block/entity/BeaconBlockEntity.java
|
||||
@@ -106,6 +_,51 @@
|
||||
@@ -106,6 +_,53 @@
|
||||
return 3;
|
||||
}
|
||||
};
|
||||
+ // CraftBukkit start - add fields and methods
|
||||
+ @Nullable
|
||||
+ public org.bukkit.potion.PotionEffect getPrimaryEffect() {
|
||||
+ return (this.primaryPower != null)
|
||||
+ ? org.bukkit.craftbukkit.potion.CraftPotionUtil.toBukkit(new MobEffectInstance(
|
||||
+ this.primaryPower,
|
||||
+ BeaconBlockEntity.getLevel(this.levels),
|
||||
+ BeaconBlockEntity.getAmplification(this.levels, this.primaryPower, this.secondaryPower),
|
||||
+ BeaconBlockEntity.computeEffectDuration(this.levels),
|
||||
+ BeaconBlockEntity.computeEffectAmplifier(this.levels, this.primaryPower, this.secondaryPower),
|
||||
+ true,
|
||||
+ true
|
||||
+ ))
|
||||
+ : null;
|
||||
+ }
|
||||
+
|
||||
+ @Nullable
|
||||
+ public org.bukkit.potion.PotionEffect getSecondaryEffect() {
|
||||
+ return (BeaconBlockEntity.hasSecondaryEffect(this.levels, this.primaryPower, this.secondaryPower))
|
||||
+ ? org.bukkit.craftbukkit.potion.CraftPotionUtil.toBukkit(new MobEffectInstance(
|
||||
+ this.secondaryPower,
|
||||
+ BeaconBlockEntity.getLevel(this.levels),
|
||||
+ BeaconBlockEntity.getAmplification(this.levels, this.primaryPower, this.secondaryPower),
|
||||
+ BeaconBlockEntity.computeEffectDuration(this.levels),
|
||||
+ BeaconBlockEntity.computeEffectAmplifier(this.levels, this.primaryPower, this.secondaryPower),
|
||||
+ true,
|
||||
+ true
|
||||
+ ))
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
+
|
||||
+ @Override
|
||||
+ public java.util.List<net.minecraft.world.item.ItemStack> getContents() {
|
||||
+ return Collections.singletonList(this.item);
|
||||
+ return java.util.Collections.singletonList(this.item);
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
|
||||
Reference in New Issue
Block a user