it compiles?
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
--- /dev/null
|
||||
+++ b/io/papermc/paper/FeatureHooks.java
|
||||
@@ -1,0 +_,72 @@
|
||||
@@ -1,0 +_,77 @@
|
||||
+package io.papermc.paper;
|
||||
+
|
||||
+import io.papermc.paper.command.PaperSubcommand;
|
||||
@@ -16,6 +16,7 @@
|
||||
+import net.minecraft.core.Registry;
|
||||
+import net.minecraft.network.protocol.game.ClientboundLevelChunkWithLightPacket;
|
||||
+import net.minecraft.server.level.ServerPlayer;
|
||||
+import net.minecraft.world.entity.monster.Spider;
|
||||
+import net.minecraft.world.level.ChunkPos;
|
||||
+import net.minecraft.world.level.Level;
|
||||
+import net.minecraft.world.level.biome.Biome;
|
||||
@@ -72,4 +73,8 @@
|
||||
+ public static boolean isChunkSent(final ServerPlayer player, final long chunkKey) {
|
||||
+ return player.getChunkTrackingView().contains(new ChunkPos(chunkKey));
|
||||
+ }
|
||||
+
|
||||
+ public static boolean isSpiderCollidingWithWorldBorder(final Spider spider) {
|
||||
+ return true; // ca.spottedleaf.moonrise.patches.collisions.CollisionUtil.isCollidingWithBorder(spider.level().getWorldBorder(), spider.getBoundingBox().inflate(ca.spottedleaf.moonrise.patches.collisions.CollisionUtil.COLLISION_EPSILON))
|
||||
+ }
|
||||
+}
|
||||
|
||||
Reference in New Issue
Block a user