File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
src/main/java/org/teneted/neotenet/mixin/world/level/block/entity Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 3232import java .util .function .Function ;
3333
3434@ Mixin (BeaconBlockEntity .class )
35- public class MixinBeaconBlockEntity implements InjectionBeaconBlockEntity {
35+ public abstract class MixinBeaconBlockEntity implements InjectionBeaconBlockEntity {
3636
3737 @ Shadow
3838 @ Nullable
@@ -45,6 +45,11 @@ public class MixinBeaconBlockEntity implements InjectionBeaconBlockEntity {
4545 @ Nullable
4646 private Holder <MobEffect > secondaryPower ;
4747
48+ @ Shadow
49+ public static List getHumansInRange (Level par1 , BlockPos par2 , int par3 ) {
50+ return null ;
51+ }
52+
4853 // CraftBukkit start - add fields and methods
4954 @ Override
5055 public PotionEffect getPrimaryEffect () {
@@ -72,15 +77,6 @@ private static int getLevel(int i) {
7277 return j ;
7378 }
7479
75- public static List getHumansInRange (Level world , BlockPos blockposition , int i ) {
76- double d0 = (double ) (i * 10 + 10 );
77-
78- AABB axisalignedbb = (new AABB (blockposition )).inflate (d0 ).expandTowards (0.0D , (double ) world .getHeight (), 0.0D );
79- List <Player > list = world .getEntitiesOfClass (Player .class , axisalignedbb );
80-
81- return list ;
82- }
83-
8480 private static boolean hasSecondaryEffect (int i , @ Nullable Holder <MobEffect > holder , @ Nullable Holder <MobEffect > holder1 ) {
8581 if (i >= 4 && !Objects .equals (holder , holder1 ) && holder1 != null ) {
8682 return true ;
You can’t perform that action at this time.
0 commit comments