mirror of
https://github.com/architectury/architectury-api.git
synced 2026-04-02 21:47:40 -05:00
Migrate to transitive access wideners (#146)
* Migrate to transitive access wideners * Fix invalid AW * Bump minor version, changes to gradle buildscript Co-authored-by: Max <maxh2709@gmail.com>
This commit is contained in:
@@ -24,10 +24,6 @@ import net.minecraft.world.phys.shapes.CollisionContext;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class EntityHooksImpl {
|
||||
public static String getEncodeId(Entity entity) {
|
||||
return entity.getEncodeId();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static Entity fromCollision(CollisionContext ctx) {
|
||||
return ctx.getEntity();
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
|
||||
package me.shedaniel.architectury.hooks.forge;
|
||||
|
||||
import net.minecraft.world.entity.Entity;
|
||||
import net.minecraft.world.level.Explosion;
|
||||
import net.minecraft.world.phys.Vec3;
|
||||
|
||||
@@ -27,16 +26,4 @@ public class ExplosionHooksImpl {
|
||||
public static Vec3 getPosition(Explosion explosion) {
|
||||
return explosion.getPosition();
|
||||
}
|
||||
|
||||
public static Entity getSource(Explosion explosion) {
|
||||
return explosion.getExploder();
|
||||
}
|
||||
|
||||
public static float getRadius(Explosion explosion) {
|
||||
return explosion.radius;
|
||||
}
|
||||
|
||||
public static void setRadius(Explosion explosion, float v) {
|
||||
explosion.radius = v;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,8 +26,4 @@ public class PlayerHooksImpl {
|
||||
public static boolean isFake(Player playerEntity) {
|
||||
return playerEntity instanceof FakePlayer;
|
||||
}
|
||||
|
||||
public static void closeContainer(Player playerEntity) {
|
||||
playerEntity.closeContainer();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user