mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-06-22 18:27:46 +02:00
fix compile errors
This commit is contained in:
@@ -15,7 +15,7 @@ import net.minecraft.core.registries.Registries;
|
||||
import net.minecraft.resources.Identifier;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.world.entity.EntityDimensions;
|
||||
import net.minecraft.world.entity.EntityType;
|
||||
import net.minecraft.world.entity.EntityTypes;
|
||||
import net.minecraft.world.item.enchantment.Enchantment;
|
||||
import net.minecraft.world.level.block.Block;
|
||||
import net.minecraft.world.level.block.Blocks;
|
||||
@@ -467,7 +467,7 @@ public class PurpurConfig {
|
||||
public static boolean endermanShortHeight = false;
|
||||
private static void entitySettings() {
|
||||
endermanShortHeight = getBoolean("settings.entity.enderman.short-height", endermanShortHeight);
|
||||
if (endermanShortHeight) EntityType.ENDERMAN.dimensions = EntityDimensions.scalable(0.6F, 1.9F);
|
||||
if (endermanShortHeight) EntityTypes.ENDERMAN.dimensions = EntityDimensions.scalable(0.6F, 1.9F);
|
||||
}
|
||||
|
||||
public static boolean allowWaterPlacementInTheEnd = true;
|
||||
|
||||
@@ -5,6 +5,7 @@ import net.minecraft.server.level.ServerLevel;
|
||||
import net.minecraft.util.Mth;
|
||||
import net.minecraft.world.entity.Entity;
|
||||
import net.minecraft.world.entity.EntityType;
|
||||
import net.minecraft.world.entity.EntityTypes;
|
||||
import net.minecraft.world.entity.LivingEntity;
|
||||
import net.minecraft.world.entity.animal.dolphin.Dolphin;
|
||||
import net.minecraft.world.entity.projectile.LlamaSpit;
|
||||
@@ -26,7 +27,7 @@ public class DolphinSpit extends LlamaSpit {
|
||||
}
|
||||
|
||||
public DolphinSpit(Level world, Dolphin dolphin) {
|
||||
this(EntityType.LLAMA_SPIT, world);
|
||||
this(EntityTypes.LLAMA_SPIT, world);
|
||||
this.setOwner(dolphin.getRider() != null ? dolphin.getRider() : dolphin);
|
||||
this.dolphin = dolphin;
|
||||
this.setPos(
|
||||
|
||||
@@ -5,6 +5,7 @@ import net.minecraft.server.level.ServerLevel;
|
||||
import net.minecraft.util.Mth;
|
||||
import net.minecraft.world.entity.Entity;
|
||||
import net.minecraft.world.entity.EntityType;
|
||||
import net.minecraft.world.entity.EntityTypes;
|
||||
import net.minecraft.world.entity.LivingEntity;
|
||||
import net.minecraft.world.entity.decoration.ArmorStand;
|
||||
import net.minecraft.world.entity.monster.Phantom;
|
||||
@@ -28,7 +29,7 @@ public class PhantomFlames extends LlamaSpit {
|
||||
}
|
||||
|
||||
public PhantomFlames(Level world, Phantom phantom) {
|
||||
this(EntityType.LLAMA_SPIT, world);
|
||||
this(EntityTypes.LLAMA_SPIT, world);
|
||||
setOwner(phantom.getRider() != null ? phantom.getRider() : phantom);
|
||||
this.phantom = phantom;
|
||||
this.setPos(
|
||||
|
||||
@@ -5,6 +5,7 @@ import net.minecraft.network.FriendlyByteBuf;
|
||||
import net.minecraft.server.level.ServerPlayer;
|
||||
import net.minecraft.world.level.block.entity.BeehiveBlockEntity;
|
||||
import net.minecraft.world.level.block.entity.BlockEntity;
|
||||
import net.minecraft.world.phys.Vec3;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.craftbukkit.entity.CraftPlayer;
|
||||
import org.bukkit.entity.Player;
|
||||
@@ -49,7 +50,7 @@ public class BeehiveTask implements PluginMessageListener {
|
||||
ServerPlayer serverPlayer = ((CraftPlayer) player).getHandle();
|
||||
|
||||
// targeted block info max range specified in client at net.minecraft.client.gui.hud.DebugHud#render
|
||||
if (!payload.pos().getCenter().closerThan(serverPlayer.position(), 20)) return; // Targeted Block info max range is 20
|
||||
if (!Vec3.atCenterOf(payload.pos()).closerThan(serverPlayer.position(), 20)) return; // Targeted Block info max range is 20
|
||||
if (serverPlayer.level().getChunkIfLoaded(payload.pos()) == null) return;
|
||||
|
||||
BlockEntity blockEntity = serverPlayer.level().getBlockEntity(payload.pos());
|
||||
|
||||
Reference in New Issue
Block a user