mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
deprecate all obfhelpers
This commit is contained in:
parent
a486d2eccf
commit
62fabeca0c
36 changed files with 82 additions and 84 deletions
|
@ -19,7 +19,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
|
|
||||||
- @Nullable
|
- @Nullable
|
||||||
- public static Entry<EquipmentSlot, ItemStack> getRandomItemWith(Enchantment enchantment, LivingEntity entity) {
|
- public static Entry<EquipmentSlot, ItemStack> getRandomItemWith(Enchantment enchantment, LivingEntity entity) {
|
||||||
+ public static @javax.annotation.Nonnull ItemStack getRandomEquippedItemWithEnchant(Enchantment enchantment, LivingEntity entityliving) {
|
+ @Deprecated public static @javax.annotation.Nonnull ItemStack getRandomEquippedItemWithEnchant(Enchantment enchantment, LivingEntity entityliving) {
|
||||||
+ Entry<EquipmentSlot, ItemStack> entry = getRandomItemWith(enchantment, entityliving);
|
+ Entry<EquipmentSlot, ItemStack> entry = getRandomItemWith(enchantment, entityliving);
|
||||||
+ return entry != null ? entry.getValue() : ItemStack.EMPTY;
|
+ return entry != null ? entry.getValue() : ItemStack.EMPTY;
|
||||||
+ } // Paper - OBFHELPER
|
+ } // Paper - OBFHELPER
|
||||||
|
|
|
@ -12,7 +12,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
this.setYHeadRot(yaw);
|
this.setYHeadRot(yaw);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ public final float getCollisionBorderSize() { return getPickRadius(); } // Paper - OBFHELPER
|
+ @Deprecated public final float getCollisionBorderSize() { return getPickRadius(); } // Paper - OBFHELPER
|
||||||
public float getPickRadius() {
|
public float getPickRadius() {
|
||||||
return 0.0F;
|
return 0.0F;
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,11 +73,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
final MinecraftServer server;
|
final MinecraftServer server;
|
||||||
public final Connection connection;
|
public final Connection connection;
|
||||||
- ServerLoginPacketListenerImpl.State state;
|
- ServerLoginPacketListenerImpl.State state;
|
||||||
+ ServerLoginPacketListenerImpl.State state; public final ServerLoginPacketListenerImpl.State getLoginState() { return this.state; }; // Paper - OBFHELPER
|
+ ServerLoginPacketListenerImpl.State state; @Deprecated public final ServerLoginPacketListenerImpl.State getLoginState() { return this.state; }; // Paper - OBFHELPER
|
||||||
private int tick;
|
private int tick;
|
||||||
@Nullable
|
@Nullable
|
||||||
- GameProfile gameProfile;
|
- GameProfile gameProfile;
|
||||||
+ GameProfile gameProfile; private void setGameProfile(final GameProfile profile) { this.gameProfile = profile; } public GameProfile getGameProfile() { return this.gameProfile; } // Paper - OBFHELPER
|
+ GameProfile gameProfile; @Deprecated private void setGameProfile(final GameProfile profile) { this.gameProfile = profile; } @Deprecated public GameProfile getGameProfile() { return this.gameProfile; } // Paper - OBFHELPER
|
||||||
private final String serverId;
|
private final String serverId;
|
||||||
@Nullable
|
@Nullable
|
||||||
private ServerPlayer delayedAcceptPlayer;
|
private ServerPlayer delayedAcceptPlayer;
|
||||||
|
|
|
@ -59,7 +59,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
|
|
||||||
public WorldBorder() {}
|
public WorldBorder() {}
|
||||||
|
|
||||||
+ public final boolean isInBounds(BlockPos blockposition) { return this.isWithinBounds(blockposition); } // Paper - OBFHELPER
|
+ @Deprecated public final boolean isInBounds(BlockPos blockposition) { return this.isWithinBounds(blockposition); } // Paper - OBFHELPER
|
||||||
public boolean isWithinBounds(BlockPos pos) {
|
public boolean isWithinBounds(BlockPos pos) {
|
||||||
return (double) (pos.getX() + 1) > this.getMinX() && (double) pos.getX() < this.getMaxX() && (double) (pos.getZ() + 1) > this.getMinZ() && (double) pos.getZ() < this.getMaxZ();
|
return (double) (pos.getX() + 1) > this.getMinX() && (double) pos.getX() < this.getMaxX() && (double) (pos.getZ() + 1) > this.getMinZ() && (double) pos.getZ() < this.getMaxZ();
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
return Registry.ENTITY_TYPE.getKey(type);
|
return Registry.ENTITY_TYPE.getKey(type);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ public static Optional<EntityType<?>> getByName(String name) { return byString(name); } // Paper - OBFHELPER
|
+ @Deprecated public static Optional<EntityType<?>> getByName(String name) { return byString(name); } // Paper - OBFHELPER
|
||||||
public static Optional<EntityType<?>> byString(String id) {
|
public static Optional<EntityType<?>> byString(String id) {
|
||||||
return Registry.ENTITY_TYPE.getOptional(ResourceLocation.tryParse(id));
|
return Registry.ENTITY_TYPE.getOptional(ResourceLocation.tryParse(id));
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
return this.isInWater() || this.isInRain();
|
return this.isInWater() || this.isInRain();
|
||||||
}
|
}
|
||||||
|
|
||||||
- public final boolean isInWaterOrRainOrBubble() { return isInWaterRainOrBubble(); } // Paper - OBFHELPER
|
- @Deprecated public final boolean isInWaterOrRainOrBubble() { return isInWaterRainOrBubble(); } // Paper - OBFHELPER
|
||||||
public boolean isInWaterRainOrBubble() {
|
public boolean isInWaterRainOrBubble() {
|
||||||
return this.isInWater() || this.isInRain() || this.isInBubbleColumn();
|
return this.isInWater() || this.isInRain() || this.isInBubbleColumn();
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
private static final AttributeModifier SPEED_MODIFIER_DRINKING = new AttributeModifier(Witch.SPEED_MODIFIER_DRINKING_UUID, "Drinking speed penalty", -0.25D, AttributeModifier.Operation.ADDITION);
|
private static final AttributeModifier SPEED_MODIFIER_DRINKING = new AttributeModifier(Witch.SPEED_MODIFIER_DRINKING_UUID, "Drinking speed penalty", -0.25D, AttributeModifier.Operation.ADDITION);
|
||||||
private static final EntityDataAccessor<Boolean> DATA_USING_ITEM = SynchedEntityData.defineId(Witch.class, EntityDataSerializers.BOOLEAN);
|
private static final EntityDataAccessor<Boolean> DATA_USING_ITEM = SynchedEntityData.defineId(Witch.class, EntityDataSerializers.BOOLEAN);
|
||||||
- private int usingTime;
|
- private int usingTime;
|
||||||
+ private int usingTime; public int getPotionUseTimeLeft() { return usingTime; } public void setPotionUseTimeLeft(int timeLeft) { usingTime = timeLeft; } // Paper - OBFHELPER
|
+ private int usingTime; @Deprecated public int getPotionUseTimeLeft() { return usingTime; } @Deprecated public void setPotionUseTimeLeft(int timeLeft) { usingTime = timeLeft; } // Paper - OBFHELPER
|
||||||
private NearestHealableRaiderTargetGoal<Raider> healRaidersGoal;
|
private NearestHealableRaiderTargetGoal<Raider> healRaidersGoal;
|
||||||
private NearestAttackableWitchTargetGoal<Player> attackPlayersGoal;
|
private NearestAttackableWitchTargetGoal<Player> attackPlayersGoal;
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
this.numberOfRestocksToday = 0;
|
this.numberOfRestocksToday = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
+ public GossipContainer getReputation() { return this.getGossips(); } // Paper - OBFHELPER
|
+ @Deprecated public GossipContainer getReputation() { return this.getGossips(); } // Paper - OBFHELPER
|
||||||
public GossipContainer getGossips() {
|
public GossipContainer getGossips() {
|
||||||
return this.gossips;
|
return this.gossips;
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
return this.isInWater() || this.isInRain();
|
return this.isInWater() || this.isInRain();
|
||||||
}
|
}
|
||||||
|
|
||||||
+ public final boolean isInWaterOrRainOrBubble() { return isInWaterRainOrBubble(); } // Paper - OBFHELPER
|
+ @Deprecated public final boolean isInWaterOrRainOrBubble() { return isInWaterRainOrBubble(); } // Paper - OBFHELPER
|
||||||
public boolean isInWaterRainOrBubble() {
|
public boolean isInWaterRainOrBubble() {
|
||||||
return this.isInWater() || this.isInRain() || this.isInBubbleColumn();
|
return this.isInWater() || this.isInRain() || this.isInBubbleColumn();
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
mob.getNavigation().setCanFloat(true);
|
mob.getNavigation().setCanFloat(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ public final boolean validConditions() { return this.canUse(); } // Paper - OBFHELPER
|
+ @Deprecated public final boolean validConditions() { return this.canUse(); } // Paper - OBFHELPER
|
||||||
@Override
|
@Override
|
||||||
public boolean canUse() {
|
public boolean canUse() {
|
||||||
return this.mob.isInWater() && this.mob.getFluidHeight(FluidTags.WATER) > this.mob.getFluidJumpThreshold() || this.mob.isInLava();
|
return this.mob.isInWater() && this.mob.getFluidHeight(FluidTags.WATER) > this.mob.getFluidJumpThreshold() || this.mob.isInLava();
|
||||||
|
|
|
@ -1313,9 +1313,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
private final Function<T, CompoundTag> writer;
|
private final Function<T, CompoundTag> writer;
|
||||||
private final T defaultValue;
|
private final T defaultValue;
|
||||||
+ private final T[] predefinedObjects; // Paper - Anti-Xray - Add predefined objects
|
+ private final T[] predefinedObjects; // Paper - Anti-Xray - Add predefined objects
|
||||||
protected BitStorage storage; public final BitStorage getDataBits() { return this.storage; } // Paper - OBFHELPER
|
protected BitStorage storage; @Deprecated public final BitStorage getDataBits() { return this.storage; } // Paper - OBFHELPER
|
||||||
private Palette<T> palette; private Palette<T> getDataPalette() { return this.palette; } // Paper - OBFHELPER
|
private Palette<T> palette; @Deprecated private Palette<T> getDataPalette() { return this.palette; } // Paper - OBFHELPER
|
||||||
private int bits; private int getBitsPerObject() { return this.bits; } // Paper - OBFHELPER
|
private int bits; @Deprecated private int getBitsPerObject() { return this.bits; } // Paper - OBFHELPER
|
||||||
@@ -0,0 +0,0 @@ public class PalettedContainer<T> implements PaletteResize<T> {
|
@@ -0,0 +0,0 @@ public class PalettedContainer<T> implements PaletteResize<T> {
|
||||||
this.lock.release();
|
this.lock.release();
|
||||||
}
|
}
|
||||||
|
@ -1380,7 +1380,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
@@ -0,0 +0,0 @@ public class PalettedContainer<T> implements PaletteResize<T> {
|
@@ -0,0 +0,0 @@ public class PalettedContainer<T> implements PaletteResize<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void writeDataPaletteBlock(FriendlyByteBuf packetDataSerializer) { this.write(packetDataSerializer); } // Paper - OBFHELPER
|
@Deprecated public void writeDataPaletteBlock(FriendlyByteBuf packetDataSerializer) { this.write(packetDataSerializer); } // Paper - OBFHELPER
|
||||||
- public void write(FriendlyByteBuf buf) {
|
- public void write(FriendlyByteBuf buf) {
|
||||||
+ // Paper start - Anti-Xray - Add chunk packet info
|
+ // Paper start - Anti-Xray - Add chunk packet info
|
||||||
+ @Deprecated public void write(FriendlyByteBuf buf) {
|
+ @Deprecated public void write(FriendlyByteBuf buf) {
|
||||||
|
|
|
@ -2631,7 +2631,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
+ public PoiManager getVillagePlace() { return this.getPoiManager(); } // Paper - OBFHELPER
|
+ @Deprecated public PoiManager getVillagePlace() { return this.getPoiManager(); } // Paper - OBFHELPER
|
||||||
protected PoiManager getPoiManager() {
|
protected PoiManager getPoiManager() {
|
||||||
return this.poiManager;
|
return this.poiManager;
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
private int reachRange;
|
private int reachRange;
|
||||||
private float maxVisitedNodesMultiplier = 1.0F;
|
private float maxVisitedNodesMultiplier = 1.0F;
|
||||||
- private final PathFinder pathFinder;
|
- private final PathFinder pathFinder;
|
||||||
+ private final PathFinder pathFinder; public PathFinder getPathfinder() { return this.pathFinder; } // Paper - OBFHELPER
|
+ private final PathFinder pathFinder; @Deprecated public PathFinder getPathfinder() { return this.pathFinder; } // Paper - OBFHELPER
|
||||||
private boolean isStuck;
|
private boolean isStuck;
|
||||||
|
|
||||||
public PathNavigation(Mob mob, Level world) {
|
public PathNavigation(Mob mob, Level world) {
|
||||||
|
@ -26,7 +26,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
private final Node[] neighbors = new Node[32];
|
private final Node[] neighbors = new Node[32];
|
||||||
private final int maxVisitedNodes;
|
private final int maxVisitedNodes;
|
||||||
- private final NodeEvaluator nodeEvaluator;
|
- private final NodeEvaluator nodeEvaluator;
|
||||||
+ private final NodeEvaluator nodeEvaluator; public NodeEvaluator getPathfinder() { return this.nodeEvaluator; } // Paper - OBFHELPER
|
+ private final NodeEvaluator nodeEvaluator; @Deprecated public NodeEvaluator getPathfinder() { return this.nodeEvaluator; } // Paper - OBFHELPER
|
||||||
private static final boolean DEBUG = false;
|
private static final boolean DEBUG = false;
|
||||||
private final BinaryHeap openSet = new BinaryHeap();
|
private final BinaryHeap openSet = new BinaryHeap();
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
public class ObtainRaidLeaderBannerGoal<T extends Raider> extends Goal {
|
public class ObtainRaidLeaderBannerGoal<T extends Raider> extends Goal {
|
||||||
|
|
||||||
- private final T mob;
|
- private final T mob;
|
||||||
+ private final T mob; private T getRaider() { return mob; } // Paper - obfhelper
|
+ private final T mob; @Deprecated private T getRaider() { return mob; } // Paper - obfhelper
|
||||||
|
|
||||||
public ObtainRaidLeaderBannerGoal(T entityraider) { // CraftBukkit - decompile error
|
public ObtainRaidLeaderBannerGoal(T entityraider) { // CraftBukkit - decompile error
|
||||||
this.mob = entityraider;
|
this.mob = entityraider;
|
||||||
|
|
|
@ -234,8 +234,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
protected int nextStartTick;
|
protected int nextStartTick;
|
||||||
protected int tryTicks;
|
protected int tryTicks;
|
||||||
private int maxStayTicks;
|
private int maxStayTicks;
|
||||||
- protected BlockPos blockPos = BlockPos.ZERO; public final BlockPos getTargetPosition() { return this.blockPos; } // Paper - OBFHELPER
|
- protected BlockPos blockPos = BlockPos.ZERO; @Deprecated public final BlockPos getTargetPosition() { return this.blockPos; } // Paper - OBFHELPER
|
||||||
+ protected BlockPos blockPos = BlockPos.ZERO; public final BlockPos getTargetPosition() { return this.blockPos; } public void setTargetPosition(BlockPos pos) { this.blockPos = pos; mob.movingTarget = pos != BlockPos.ZERO ? pos : null; } // Paper - OBFHELPER
|
+ protected BlockPos blockPos = BlockPos.ZERO; @Deprecated public final BlockPos getTargetPosition() { return this.blockPos; } @Deprecated public void setTargetPosition(BlockPos pos) { this.blockPos = pos; mob.movingTarget = pos != BlockPos.ZERO ? pos : null; } // Paper - OBFHELPER
|
||||||
private boolean reachedTarget;
|
private boolean reachedTarget;
|
||||||
private final int searchRange;
|
private final int searchRange;
|
||||||
private final int verticalSearchRange;
|
private final int verticalSearchRange;
|
||||||
|
|
|
@ -48,7 +48,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
public abstract class PathNavigation {
|
public abstract class PathNavigation {
|
||||||
private static final int MAX_TIME_RECOMPUTE = 20;
|
private static final int MAX_TIME_RECOMPUTE = 20;
|
||||||
- protected final Mob mob;
|
- protected final Mob mob;
|
||||||
+ protected final Mob mob; public Entity getEntity() { return mob; } // Paper - OBFHELPER
|
+ protected final Mob mob; @Deprecated public Entity getEntity() { return mob; } // Paper - OBFHELPER
|
||||||
protected final Level level;
|
protected final Level level;
|
||||||
@Nullable
|
@Nullable
|
||||||
protected Path path;
|
protected Path path;
|
||||||
|
|
|
@ -264,7 +264,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
public class FurnaceResultSlot extends Slot {
|
public class FurnaceResultSlot extends Slot {
|
||||||
|
|
||||||
- private final Player player;
|
- private final Player player;
|
||||||
+ private final Player player; public final Player getPlayer() { return this.player; } // Paper OBFHELPER
|
+ private final Player player; @Deprecated public final Player getPlayer() { return this.player; } // Paper OBFHELPER
|
||||||
private int removeCount;
|
private int removeCount;
|
||||||
|
|
||||||
public FurnaceResultSlot(Player player, Container inventory, int index, int x, int y) {
|
public FurnaceResultSlot(Player player, Container inventory, int index, int x, int y) {
|
||||||
|
|
|
@ -127,7 +127,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
return this.name;
|
return this.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
+ public ChunkStatus getPreviousStatus() { return this.getParent(); } // Paper - OBFHELPER
|
+ @Deprecated public ChunkStatus getPreviousStatus() { return this.getParent(); } // Paper - OBFHELPER
|
||||||
public ChunkStatus getParent() {
|
public ChunkStatus getParent() {
|
||||||
return this.parent;
|
return this.parent;
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,11 +38,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
public class RailState {
|
public class RailState {
|
||||||
- private final Level level;
|
- private final Level level;
|
||||||
- private final BlockPos pos;
|
- private final BlockPos pos;
|
||||||
+ private final Level level; public final Level getWorld() { return this.level; } // Paper - OBFHELPER
|
+ private final Level level; @Deprecated public final Level getWorld() { return this.level; } // Paper - OBFHELPER
|
||||||
+ private final BlockPos pos; public final BlockPos getPos() { return this.pos; } // Paper - OBFHELPER
|
+ private final BlockPos pos; @Deprecated public final BlockPos getPos() { return this.pos; } // Paper - OBFHELPER
|
||||||
private final BaseRailBlock block;
|
private final BaseRailBlock block;
|
||||||
- private BlockState state;
|
- private BlockState state;
|
||||||
+ private BlockState state; public final BlockState getRailState() { return this.state; } // Paper - OBFHELPER
|
+ private BlockState state; @Deprecated public final BlockState getRailState() { return this.state; } // Paper - OBFHELPER
|
||||||
private final boolean isStraight;
|
private final boolean isStraight;
|
||||||
private final List<BlockPos> connections = Lists.newArrayList();
|
private final List<BlockPos> connections = Lists.newArrayList();
|
||||||
|
|
||||||
|
|
|
@ -873,10 +873,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+ }
|
+ }
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
+
|
+
|
||||||
+ public boolean canUse() { return this.shouldActivate(); } public boolean shouldActivate() { return false;} public boolean shouldActivate2() { return canUse(); } // Paper - OBFHELPER, for both directions...
|
+ public boolean canUse() { return this.shouldActivate(); } @Deprecated public boolean shouldActivate() { return false;} @Deprecated public boolean shouldActivate2() { return canUse(); } // Paper - OBFHELPER, for both directions...
|
||||||
|
|
||||||
- public boolean canContinueToUse() {
|
- public boolean canContinueToUse() {
|
||||||
+ public boolean canContinueToUse() { return this.shouldStayActive(); } public boolean shouldStayActive2() { return canContinueToUse(); } public boolean shouldStayActive() { // Paper - OBFHELPER, for both directions...
|
+ public boolean canContinueToUse() { return this.shouldStayActive(); } @Deprecated public boolean shouldStayActive2() { return canContinueToUse(); } @Deprecated public boolean shouldStayActive() { // Paper - OBFHELPER, for both directions...
|
||||||
return this.canUse();
|
return this.canUse();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -885,7 +885,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
}
|
}
|
||||||
|
|
||||||
- public void setFlags(EnumSet<Goal.Flag> controls) {
|
- public void setFlags(EnumSet<Goal.Flag> controls) {
|
||||||
+ public void setFlags(EnumSet<Goal.Flag> controls) { this.setTypes(controls); } public void setTypes(EnumSet<Goal.Flag> enumset) { // Paper - OBFHELPER
|
+ @Deprecated public void setFlags(EnumSet<Goal.Flag> controls) { this.setTypes(controls); } public void setTypes(EnumSet<Goal.Flag> enumset) { // Paper - OBFHELPER
|
||||||
// Paper start - remove streams from pathfindergoalselector
|
// Paper start - remove streams from pathfindergoalselector
|
||||||
this.goalTypes.clear();
|
this.goalTypes.clear();
|
||||||
- this.goalTypes.addAllUnchecked(controls);
|
- this.goalTypes.addAllUnchecked(controls);
|
||||||
|
|
|
@ -197,7 +197,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
return SoundEvents.GENERIC_HURT;
|
return SoundEvents.GENERIC_HURT;
|
||||||
}
|
}
|
||||||
|
|
||||||
+ public SoundEvent getDeathSoundPublic() { return getDeathSound(); } // Paper - public OBFHELPER
|
+ @Deprecated public SoundEvent getDeathSoundPublic() { return getDeathSound(); } // Paper - public OBFHELPER
|
||||||
@Nullable
|
@Nullable
|
||||||
protected SoundEvent getDeathSound() {
|
protected SoundEvent getDeathSound() {
|
||||||
return SoundEvents.GENERIC_DEATH;
|
return SoundEvents.GENERIC_DEATH;
|
||||||
|
|
|
@ -2323,7 +2323,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
this.tags.put(key, LongTag.valueOf(value));
|
this.tags.put(key, LongTag.valueOf(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
+ public void setUUID(String prefix, UUID uuid) { putUUID(prefix, uuid); } // Paper - OBFHELPER
|
+ @Deprecated public void setUUID(String prefix, UUID uuid) { putUUID(prefix, uuid); } // Paper - OBFHELPER
|
||||||
public void putUUID(String key, UUID value) {
|
public void putUUID(String key, UUID value) {
|
||||||
this.tags.put(key, NbtUtils.createUUID(value));
|
this.tags.put(key, NbtUtils.createUUID(value));
|
||||||
}
|
}
|
||||||
|
@ -3441,9 +3441,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
- private long keepAliveTime;
|
- private long keepAliveTime;
|
||||||
- private boolean keepAlivePending;
|
- private boolean keepAlivePending;
|
||||||
- private long keepAliveChallenge;
|
- private long keepAliveChallenge;
|
||||||
+ private long keepAliveTime; private void setLastPing(long lastPing) { this.keepAliveTime = lastPing;}; private long getLastPing() { return this.keepAliveTime;}; // Paper - OBFHELPER
|
+ private long keepAliveTime; @Deprecated private void setLastPing(long lastPing) { this.keepAliveTime = lastPing;}; @Deprecated private long getLastPing() { return this.keepAliveTime;}; // Paper - OBFHELPER
|
||||||
+ private boolean keepAlivePending; private void setPendingPing(boolean isPending) { this.keepAlivePending = isPending;}; private boolean isPendingPing() { return this.keepAlivePending;}; // Paper - OBFHELPER
|
+ private boolean keepAlivePending; @Deprecated private void setPendingPing(boolean isPending) { this.keepAlivePending = isPending;}; @Deprecated private boolean isPendingPing() { return this.keepAlivePending;}; // Paper - OBFHELPER
|
||||||
+ private long keepAliveChallenge; private void setKeepAliveID(long keepAliveID) { this.keepAliveChallenge = keepAliveID;}; private long getKeepAliveID() {return this.keepAliveChallenge; }; // Paper - OBFHELPER
|
+ private long keepAliveChallenge; @Deprecated private void setKeepAliveID(long keepAliveID) { this.keepAliveChallenge = keepAliveID;}; @Deprecated private long getKeepAliveID() {return this.keepAliveChallenge; }; // Paper - OBFHELPER
|
||||||
// CraftBukkit start - multithreaded fields
|
// CraftBukkit start - multithreaded fields
|
||||||
private AtomicInteger chatSpamTickCount = new AtomicInteger();
|
private AtomicInteger chatSpamTickCount = new AtomicInteger();
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
|
@ -3523,7 +3523,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
public final NonNullList<ItemStack> armor;
|
public final NonNullList<ItemStack> armor;
|
||||||
public final NonNullList<ItemStack> offhand;
|
public final NonNullList<ItemStack> offhand;
|
||||||
- private final List<NonNullList<ItemStack>> compartments;
|
- private final List<NonNullList<ItemStack>> compartments;
|
||||||
+ private final List<NonNullList<ItemStack>> compartments; public final List<NonNullList<ItemStack>> getComponents() { return compartments; } // Paper - OBFHELPER
|
+ private final List<NonNullList<ItemStack>> compartments; @Deprecated public final List<NonNullList<ItemStack>> getComponents() { return compartments; } // Paper - OBFHELPER
|
||||||
public int selected;
|
public int selected;
|
||||||
public final Player player;
|
public final Player player;
|
||||||
private int timesChanged;
|
private int timesChanged;
|
||||||
|
@ -3580,7 +3580,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
return compound == null ? Potions.EMPTY : Potion.byName(compound.getString("Potion"));
|
return compound == null ? Potions.EMPTY : Potion.byName(compound.getString("Potion"));
|
||||||
}
|
}
|
||||||
|
|
||||||
+ public static ItemStack addPotionToItemStack(ItemStack itemstack, Potion potionregistry) { return setPotion(itemstack, potionregistry); } // Paper - OBFHELPER
|
+ @Deprecated public static ItemStack addPotionToItemStack(ItemStack itemstack, Potion potionregistry) { return setPotion(itemstack, potionregistry); } // Paper - OBFHELPER
|
||||||
public static ItemStack setPotion(ItemStack stack, Potion potion) {
|
public static ItemStack setPotion(ItemStack stack, Potion potion) {
|
||||||
ResourceLocation resourceLocation = Registry.POTION.getKey(potion);
|
ResourceLocation resourceLocation = Registry.POTION.getKey(potion);
|
||||||
if (potion == Potions.EMPTY) {
|
if (potion == Potions.EMPTY) {
|
||||||
|
@ -3781,8 +3781,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
|
|
||||||
- @Override
|
- @Override
|
||||||
- public boolean removeBlock(BlockPos pos, boolean move) {
|
- public boolean removeBlock(BlockPos pos, boolean move) {
|
||||||
+ public boolean setAir(BlockPos blockposition) { return this.removeBlock(blockposition, false); } // Paper - OBFHELPER
|
+ @Deprecated public boolean setAir(BlockPos blockposition) { return this.removeBlock(blockposition, false); } // Paper - OBFHELPER
|
||||||
+ public boolean setAir(BlockPos blockposition, boolean moved) { return this.removeBlock(blockposition, moved); } // Paper - OBFHELPER
|
+ @Deprecated public boolean setAir(BlockPos blockposition, boolean moved) { return this.removeBlock(blockposition, moved); } // Paper - OBFHELPER
|
||||||
+ @Override public boolean removeBlock(BlockPos pos, boolean move) { // Paper - OBFHELPER
|
+ @Override public boolean removeBlock(BlockPos pos, boolean move) { // Paper - OBFHELPER
|
||||||
FluidState fluid = this.getFluidState(pos);
|
FluidState fluid = this.getFluidState(pos);
|
||||||
|
|
||||||
|
@ -3867,7 +3867,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
};
|
};
|
||||||
@Nullable
|
@Nullable
|
||||||
- public static final LevelChunkSection EMPTY_SECTION = null;
|
- public static final LevelChunkSection EMPTY_SECTION = null;
|
||||||
+ public static final LevelChunkSection EMPTY_SECTION = null; public static final LevelChunkSection EMPTY_CHUNK_SECTION = EMPTY_SECTION; // Paper - OBFHELPER
|
+ public static final LevelChunkSection EMPTY_SECTION = null; @Deprecated public static final LevelChunkSection EMPTY_CHUNK_SECTION = EMPTY_SECTION; // Paper - OBFHELPER
|
||||||
private final LevelChunkSection[] sections;
|
private final LevelChunkSection[] sections;
|
||||||
private ChunkBiomeContainer biomes;
|
private ChunkBiomeContainer biomes;
|
||||||
private final Map<BlockPos, CompoundTag> pendingBlockEntities;
|
private final Map<BlockPos, CompoundTag> pendingBlockEntities;
|
||||||
|
@ -4024,7 +4024,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
return this.getBlockEntity(pos, LevelChunk.EntityCreationType.CHECK);
|
return this.getBlockEntity(pos, LevelChunk.EntityCreationType.CHECK);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ @Nullable public final BlockEntity getTileEntityImmediately(BlockPos pos) { return this.getBlockEntity(pos, EntityCreationType.IMMEDIATE); } // Paper - OBFHELPER
|
+ @Deprecated @Nullable public final BlockEntity getTileEntityImmediately(BlockPos pos) { return this.getBlockEntity(pos, EntityCreationType.IMMEDIATE); } // Paper - OBFHELPER
|
||||||
@Nullable
|
@Nullable
|
||||||
public BlockEntity getBlockEntity(BlockPos pos, LevelChunk.EntityCreationType creationType) {
|
public BlockEntity getBlockEntity(BlockPos pos, LevelChunk.EntityCreationType creationType) {
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
|
@ -4107,12 +4107,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
import net.minecraft.network.FriendlyByteBuf;
|
import net.minecraft.network.FriendlyByteBuf;
|
||||||
|
|
||||||
public interface Palette<T> {
|
public interface Palette<T> {
|
||||||
+ default int getOrCreateIdFor(T object) { return this.idFor(object); } // Paper - OBFHELPER
|
+ @Deprecated default int getOrCreateIdFor(T object) { return this.idFor(object); } // Paper - OBFHELPER
|
||||||
int idFor(T object);
|
int idFor(T object);
|
||||||
|
|
||||||
boolean maybeHas(Predicate<T> predicate);
|
boolean maybeHas(Predicate<T> predicate);
|
||||||
|
|
||||||
+ @Nullable default T getObject(int dataBits) { return this.valueFor(dataBits); } // Paper - OBFHELPER
|
+ @Deprecated @Nullable default T getObject(int dataBits) { return this.valueFor(dataBits); } // Paper - OBFHELPER
|
||||||
@Nullable
|
@Nullable
|
||||||
T valueFor(int index);
|
T valueFor(int index);
|
||||||
|
|
||||||
|
@ -4125,7 +4125,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
public static final int GLOBAL_PALETTE_BITS = 9;
|
public static final int GLOBAL_PALETTE_BITS = 9;
|
||||||
public static final int MIN_PALETTE_SIZE = 4;
|
public static final int MIN_PALETTE_SIZE = 4;
|
||||||
- private final Palette<T> globalPalette;
|
- private final Palette<T> globalPalette;
|
||||||
+ private final Palette<T> globalPalette; private final Palette<T> getDataPaletteGlobal() { return this.globalPalette; } // Paper - OBFHELPER
|
+ private final Palette<T> globalPalette; @Deprecated private final Palette<T> getDataPaletteGlobal() { return this.globalPalette; } // Paper - OBFHELPER
|
||||||
private final PaletteResize<T> dummyPaletteResize = (newSize, added) -> {
|
private final PaletteResize<T> dummyPaletteResize = (newSize, added) -> {
|
||||||
return 0;
|
return 0;
|
||||||
};
|
};
|
||||||
|
@ -4136,9 +4136,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
- protected BitStorage storage;
|
- protected BitStorage storage;
|
||||||
- private Palette<T> palette;
|
- private Palette<T> palette;
|
||||||
- private int bits;
|
- private int bits;
|
||||||
+ protected BitStorage storage; public final BitStorage getDataBits() { return this.storage; } // Paper - OBFHELPER
|
+ protected BitStorage storage; @Deprecated public final BitStorage getDataBits() { return this.storage; } // Paper - OBFHELPER
|
||||||
+ private Palette<T> palette; private Palette<T> getDataPalette() { return this.palette; } // Paper - OBFHELPER
|
+ private Palette<T> palette; @Deprecated private Palette<T> getDataPalette() { return this.palette; } // Paper - OBFHELPER
|
||||||
+ private int bits; private int getBitsPerObject() { return this.bits; } // Paper - OBFHELPER
|
+ private int bits; @Deprecated private int getBitsPerObject() { return this.bits; } // Paper - OBFHELPER
|
||||||
private final Semaphore lock = new Semaphore(1);
|
private final Semaphore lock = new Semaphore(1);
|
||||||
@Nullable
|
@Nullable
|
||||||
private final DebugBuffer<Pair<Thread, StackTraceElement[]>> traces = null;
|
private final DebugBuffer<Pair<Thread, StackTraceElement[]>> traces = null;
|
||||||
|
@ -4146,7 +4146,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
return y << 8 | z << 4 | x;
|
return y << 8 | z << 4 | x;
|
||||||
}
|
}
|
||||||
|
|
||||||
+ private void initialize(int bitsPerObject) { this.setBits(bitsPerObject); } // Paper - OBFHELPER
|
+ @Deprecated private void initialize(int bitsPerObject) { this.setBits(bitsPerObject); } // Paper - OBFHELPER
|
||||||
private void setBits(int size) {
|
private void setBits(int size) {
|
||||||
if (size != this.bits) {
|
if (size != this.bits) {
|
||||||
this.bits = size;
|
this.bits = size;
|
||||||
|
@ -4154,7 +4154,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
+ public void writeDataPaletteBlock(FriendlyByteBuf packetDataSerializer) { this.write(packetDataSerializer); } // Paper - OBFHELPER
|
+ @Deprecated public void writeDataPaletteBlock(FriendlyByteBuf packetDataSerializer) { this.write(packetDataSerializer); } // Paper - OBFHELPER
|
||||||
public void write(FriendlyByteBuf buf) {
|
public void write(FriendlyByteBuf buf) {
|
||||||
try {
|
try {
|
||||||
this.acquire();
|
this.acquire();
|
||||||
|
@ -4190,7 +4190,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
private final AtomicBoolean shutdownRequested = new AtomicBoolean();
|
private final AtomicBoolean shutdownRequested = new AtomicBoolean();
|
||||||
private final ProcessorMailbox<StrictQueue.IntRunnable> mailbox;
|
private final ProcessorMailbox<StrictQueue.IntRunnable> mailbox;
|
||||||
- private final RegionFileStorage storage;
|
- private final RegionFileStorage storage;
|
||||||
+ private final RegionFileStorage storage;public RegionFileStorage getRegionFileCache() { return storage; } // Paper - OBFHELPER
|
+ private final RegionFileStorage storage;@Deprecated public RegionFileStorage getRegionFileCache() { return storage; } // Paper - OBFHELPER
|
||||||
private final Map<ChunkPos, IOWorker.PendingStore> pendingWrites = Maps.newLinkedHashMap();
|
private final Map<ChunkPos, IOWorker.PendingStore> pendingWrites = Maps.newLinkedHashMap();
|
||||||
|
|
||||||
protected IOWorker(File directory, boolean dsync, String name) {
|
protected IOWorker(File directory, boolean dsync, String name) {
|
||||||
|
@ -4202,7 +4202,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
return this.externalFileDir.resolve(s);
|
return this.externalFileDir.resolve(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ @Nullable public synchronized DataInputStream getReadStream(ChunkPos chunkCoordIntPair) throws IOException { return getChunkDataInputStream(chunkCoordIntPair);} // Paper - OBFHELPER
|
+ @Deprecated @Nullable public synchronized DataInputStream getReadStream(ChunkPos chunkCoordIntPair) throws IOException { return getChunkDataInputStream(chunkCoordIntPair);} // Paper - OBFHELPER
|
||||||
@Nullable
|
@Nullable
|
||||||
public synchronized DataInputStream getChunkDataInputStream(ChunkPos pos) throws IOException {
|
public synchronized DataInputStream getChunkDataInputStream(ChunkPos pos) throws IOException {
|
||||||
int i = this.getOffset(pos);
|
int i = this.getOffset(pos);
|
||||||
|
@ -4214,7 +4214,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
return EMPTY;
|
return EMPTY;
|
||||||
}
|
}
|
||||||
|
|
||||||
+ public static final VoxelShape fullCube() {return block();} // Paper - OBFHELPER
|
+ @Deprecated public static final VoxelShape fullCube() {return block();} // Paper - OBFHELPER
|
||||||
public static VoxelShape block() {
|
public static VoxelShape block() {
|
||||||
return BLOCK;
|
return BLOCK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -159,7 +159,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
- public final Path createPath(double x, double y, double z, int distance) {
|
- public final Path createPath(double x, double y, double z, int distance) {
|
||||||
+ public final Path calculateDestination(double d0, double d1, double d2) { return createPath(d0, d1, d2, 0); } public final Path createPath(double x, double y, double z, int distance) { // Paper - OBFHELPER
|
+ @Deprecated public final Path calculateDestination(double d0, double d1, double d2) { return createPath(d0, d1, d2, 0); } public final Path createPath(double x, double y, double z, int distance) { // Paper - OBFHELPER
|
||||||
return this.createPath(new BlockPos(x, y, z), distance);
|
return this.createPath(new BlockPos(x, y, z), distance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -176,7 +176,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
return path != null && this.moveTo(path, speed);
|
return path != null && this.moveTo(path, speed);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ public boolean setDestination(@Nullable Path pathentity, double speed) { return moveTo(pathentity, speed); } // Paper - OBFHELPER
|
+ @Deprecated public boolean setDestination(@Nullable Path pathentity, double speed) { return moveTo(pathentity, speed); } // Paper - OBFHELPER
|
||||||
public boolean moveTo(@Nullable Path path, double speed) {
|
public boolean moveTo(@Nullable Path path, double speed) {
|
||||||
if (path == null) {
|
if (path == null) {
|
||||||
this.path = null;
|
this.path = null;
|
||||||
|
@ -185,7 +185,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
}
|
}
|
||||||
|
|
||||||
- @Nullable
|
- @Nullable
|
||||||
+ @Nullable public Path getPathEntity() { return getPath(); } @Nullable // Paper - OBFHELPER
|
+ @Deprecated @Nullable public Path getPathEntity() { return getPath(); } @Nullable // Paper - OBFHELPER
|
||||||
public Path getPath() {
|
public Path getPath() {
|
||||||
return this.path;
|
return this.path;
|
||||||
}
|
}
|
||||||
|
@ -193,7 +193,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
return !this.isDone();
|
return !this.isDone();
|
||||||
}
|
}
|
||||||
|
|
||||||
+ public void stopPathfinding() { stop(); } // Paper - OBFHELPER
|
+ @Deprecated public void stopPathfinding() { stop(); } // Paper - OBFHELPER
|
||||||
public void stop() {
|
public void stop() {
|
||||||
this.path = null;
|
this.path = null;
|
||||||
}
|
}
|
||||||
|
@ -208,9 +208,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
- public final int x;
|
- public final int x;
|
||||||
- public final int y;
|
- public final int y;
|
||||||
- public final int z;
|
- public final int z;
|
||||||
+ public final int x; public final int getX() { return x; } // Paper - OBFHELPER
|
+ public final int x; @Deprecated public final int getX() { return x; } // Paper - OBFHELPER
|
||||||
+ public final int y; public final int getY() { return y; } // Paper - OBFHELPER
|
+ public final int y; @Deprecated public final int getY() { return y; } // Paper - OBFHELPER
|
||||||
+ public final int z; public final int getZ() { return z; } // Paper - OBFHELPER
|
+ public final int z; @Deprecated public final int getZ() { return z; } // Paper - OBFHELPER
|
||||||
private final int hash;
|
private final int hash;
|
||||||
public int heapIdx = -1;
|
public int heapIdx = -1;
|
||||||
public float g;
|
public float g;
|
||||||
|
@ -225,9 +225,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
- protected boolean canPassDoors;
|
- protected boolean canPassDoors;
|
||||||
- protected boolean canOpenDoors;
|
- protected boolean canOpenDoors;
|
||||||
- protected boolean canFloat;
|
- protected boolean canFloat;
|
||||||
+ protected boolean canPassDoors; public boolean shouldPassDoors() { return canPassDoors; } public void setShouldPassDoors(boolean b) { canPassDoors = b; } // Paper - obfhelper
|
+ protected boolean canPassDoors; @Deprecated public boolean shouldPassDoors() { return canPassDoors; } @Deprecated public void setShouldPassDoors(boolean b) { canPassDoors = b; } // Paper - obfhelper
|
||||||
+ protected boolean canOpenDoors; public boolean shouldOpenDoors() { return canOpenDoors; } public void setShouldOpenDoors(boolean b) { canOpenDoors = b; } // Paper - obfhelper
|
+ protected boolean canOpenDoors; @Deprecated public boolean shouldOpenDoors() { return canOpenDoors; } @Deprecated public void setShouldOpenDoors(boolean b) { canOpenDoors = b; } // Paper - obfhelper
|
||||||
+ protected boolean canFloat; public boolean shouldFloat() { return canFloat; } public void setShouldFloat(boolean b) { canFloat = b; } // Paper - obfhelper
|
+ protected boolean canFloat; @Deprecated public boolean shouldFloat() { return canFloat; } @Deprecated public void setShouldFloat(boolean b) { canFloat = b; } // Paper - obfhelper
|
||||||
|
|
||||||
public void prepare(PathNavigationRegion cachedWorld, Mob entity) {
|
public void prepare(PathNavigationRegion cachedWorld, Mob entity) {
|
||||||
this.level = cachedWorld;
|
this.level = cachedWorld;
|
||||||
|
@ -240,12 +240,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
|
|
||||||
public class Path {
|
public class Path {
|
||||||
- private final List<Node> nodes;
|
- private final List<Node> nodes;
|
||||||
+ private final List<Node> nodes; public List<Node> getPoints() { return nodes; } // Paper - OBFHELPER
|
+ private final List<Node> nodes; @Deprecated public List<Node> getPoints() { return nodes; } // Paper - OBFHELPER
|
||||||
private Node[] openSet = new Node[0];
|
private Node[] openSet = new Node[0];
|
||||||
private Node[] closedSet = new Node[0];
|
private Node[] closedSet = new Node[0];
|
||||||
private Set<Target> targetNodes;
|
private Set<Target> targetNodes;
|
||||||
- private int nextNodeIndex;
|
- private int nextNodeIndex;
|
||||||
+ private int nextNodeIndex; public int getNextIndex() { return this.nextNodeIndex; } // Paper - OBFHELPER
|
+ private int nextNodeIndex; @Deprecated public int getNextIndex() { return this.nextNodeIndex; } // Paper - OBFHELPER
|
||||||
private final BlockPos target;
|
private final BlockPos target;
|
||||||
private final float distToTarget;
|
private final float distToTarget;
|
||||||
private final boolean reached;
|
private final boolean reached;
|
||||||
|
@ -258,7 +258,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
- public Node getEndNode() {
|
- public Node getEndNode() {
|
||||||
+ public Node getFinalPoint() { return getEndNode(); } @Nullable public Node getEndNode() { // Paper - OBFHELPER
|
+ @Deprecated public Node getFinalPoint() { return getEndNode(); } @Nullable public Node getEndNode() { // Paper - OBFHELPER
|
||||||
return !this.nodes.isEmpty() ? this.nodes.get(this.nodes.size() - 1) : null;
|
return !this.nodes.isEmpty() ? this.nodes.get(this.nodes.size() - 1) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -267,7 +267,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
}
|
}
|
||||||
|
|
||||||
- public BlockPos getNextNodePos() {
|
- public BlockPos getNextNodePos() {
|
||||||
+ public BlockPos getNext() { return getNextNodePos(); } public BlockPos getNextNodePos() { // Paper - OBFHELPER
|
+ @Deprecated public BlockPos getNext() { return getNextNodePos(); } public BlockPos getNextNodePos() { // Paper - OBFHELPER
|
||||||
return this.nodes.get(this.nextNodeIndex).asBlockPos();
|
return this.nodes.get(this.nextNodeIndex).asBlockPos();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1061,7 +1061,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
public final long triggerTick;
|
public final long triggerTick;
|
||||||
public final TickPriority priority;
|
public final TickPriority priority;
|
||||||
- private final long c;
|
- private final long c;
|
||||||
+ private final long c; public final long getId() { return this.c; } // Paper - OBFHELPER
|
+ private final long c; @Deprecated public final long getId() { return this.c; } // Paper - OBFHELPER
|
||||||
+ private final int hash; // Paper
|
+ private final int hash; // Paper
|
||||||
+ public int tickState; // Paper
|
+ public int tickState; // Paper
|
||||||
|
|
||||||
|
|
|
@ -40,4 +40,4 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean setDestination(@Nullable Path pathentity, double speed) { return moveTo(pathentity, speed); } // Paper - OBFHELPER
|
@Deprecated public boolean setDestination(@Nullable Path pathentity, double speed) { return moveTo(pathentity, speed); } // Paper - OBFHELPER
|
||||||
|
|
|
@ -70,7 +70,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
public class PatrolSpawner implements CustomSpawner {
|
public class PatrolSpawner implements CustomSpawner {
|
||||||
|
|
||||||
- private int nextTick;
|
- private int nextTick;
|
||||||
+ private int nextTick;private int getSpawnDelay() { return nextTick; } private void setSpawnDelay(int spawnDelay) { this.nextTick = spawnDelay; } // Paper - OBFHELPER
|
+ private int nextTick;@Deprecated private int getSpawnDelay() { return nextTick; } @Deprecated private void setSpawnDelay(int spawnDelay) { this.nextTick = spawnDelay; } // Paper - OBFHELPER
|
||||||
|
|
||||||
public PatrolSpawner() {}
|
public PatrolSpawner() {}
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
return Mth.sqrt(f * f + f1 * f1 + f2 * f2);
|
return Mth.sqrt(f * f + f1 * f1 + f2 * f2);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ public double getDistanceSquared(double x, double y, double z) { return distanceToSqr(x, y, z); } // Paper - OBFHELPER
|
+ @Deprecated public double getDistanceSquared(double x, double y, double z) { return distanceToSqr(x, y, z); } // Paper - OBFHELPER
|
||||||
public double distanceToSqr(double x, double y, double z) {
|
public double distanceToSqr(double x, double y, double z) {
|
||||||
double d3 = this.getX() - x;
|
double d3 = this.getX() - x;
|
||||||
double d4 = this.getY() - y;
|
double d4 = this.getY() - y;
|
||||||
|
|
|
@ -67,7 +67,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
return this.direction;
|
return this.direction;
|
||||||
}
|
}
|
||||||
|
|
||||||
+ public final boolean isHead() { return this.isSourcePiston(); } // Paper - OBFHELPER
|
+ @Deprecated public final boolean isHead() { return this.isSourcePiston(); } // Paper - OBFHELPER
|
||||||
+
|
+
|
||||||
public boolean isSourcePiston() {
|
public boolean isSourcePiston() {
|
||||||
return this.isSourcePiston;
|
return this.isSourcePiston;
|
||||||
|
|
|
@ -40,7 +40,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
|
|
||||||
public interface RangedAttackMob {
|
public interface RangedAttackMob {
|
||||||
- void performRangedAttack(LivingEntity target, float pullProgress);
|
- void performRangedAttack(LivingEntity target, float pullProgress);
|
||||||
+ void performRangedAttack(LivingEntity target, float pullProgress); default void rangedAttack(LivingEntity entityliving, float f) { performRangedAttack(entityliving, f); } // Paper - OBFHELPER
|
+ void performRangedAttack(LivingEntity target, float pullProgress); @Deprecated default void rangedAttack(LivingEntity entityliving, float f) { performRangedAttack(entityliving, f); } // Paper - OBFHELPER
|
||||||
+
|
+
|
||||||
+ // - see EntitySkeletonAbstract melee goal
|
+ // - see EntitySkeletonAbstract melee goal
|
||||||
+ void setAggressive(boolean flag); default void setChargingAttack(boolean charging) { setAggressive(charging); }; // Paper
|
+ void setAggressive(boolean flag); default void setChargingAttack(boolean charging) { setAggressive(charging); }; // Paper
|
||||||
|
|
|
@ -13,7 +13,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+++ b/src/main/java/net/minecraft/nbt/CompoundTag.java
|
+++ b/src/main/java/net/minecraft/nbt/CompoundTag.java
|
||||||
@@ -0,0 +0,0 @@ public class CompoundTag implements Tag {
|
@@ -0,0 +0,0 @@ public class CompoundTag implements Tag {
|
||||||
|
|
||||||
public void setUUID(String prefix, UUID uuid) { putUUID(prefix, uuid); } // Paper - OBFHELPER
|
@Deprecated public void setUUID(String prefix, UUID uuid) { putUUID(prefix, uuid); } // Paper - OBFHELPER
|
||||||
public void putUUID(String key, UUID value) {
|
public void putUUID(String key, UUID value) {
|
||||||
+ // Paper start - support old format
|
+ // Paper start - support old format
|
||||||
+ if (this.contains(key + "Most", 99) && this.contains(key + "Least", 99)) {
|
+ if (this.contains(key + "Most", 99) && this.contains(key + "Least", 99)) {
|
||||||
|
|
|
@ -785,8 +785,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
private long nextTickTime;
|
private long nextTickTime;
|
||||||
- private long delayedTasksMaxNextTickTime;
|
- private long delayedTasksMaxNextTickTime;
|
||||||
- private boolean mayHaveDelayedTasks;
|
- private boolean mayHaveDelayedTasks;
|
||||||
+ private long delayedTasksMaxNextTickTime; final long getTickOversleepMaxTime() { return this.delayedTasksMaxNextTickTime; } // Paper - OBFHELPER
|
+ private long delayedTasksMaxNextTickTime; @Deprecated final long getTickOversleepMaxTime() { return this.delayedTasksMaxNextTickTime; } // Paper - OBFHELPER
|
||||||
+ private boolean mayHaveDelayedTasks; final boolean hasExecutedTask() { return this.mayHaveDelayedTasks; } // Paper - OBFHELPER
|
+ private boolean mayHaveDelayedTasks; @Deprecated final boolean hasExecutedTask() { return this.mayHaveDelayedTasks; } // Paper - OBFHELPER
|
||||||
private boolean hasWorldScreenshot;
|
private boolean hasWorldScreenshot;
|
||||||
private final PackRepository packRepository;
|
private final PackRepository packRepository;
|
||||||
private final ServerScoreboard scoreboard;
|
private final ServerScoreboard scoreboard;
|
||||||
|
|
|
@ -13,7 +13,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
protected int tryTicks;
|
protected int tryTicks;
|
||||||
private int maxStayTicks;
|
private int maxStayTicks;
|
||||||
- protected BlockPos blockPos = BlockPos.ZERO;
|
- protected BlockPos blockPos = BlockPos.ZERO;
|
||||||
+ protected BlockPos blockPos = BlockPos.ZERO; public final BlockPos getTargetPosition() { return this.blockPos; } // Paper - OBFHELPER
|
+ protected BlockPos blockPos = BlockPos.ZERO; @Deprecated public final BlockPos getTargetPosition() { return this.blockPos; } // Paper - OBFHELPER
|
||||||
private boolean reachedTarget;
|
private boolean reachedTarget;
|
||||||
private final int searchRange;
|
private final int searchRange;
|
||||||
private final int verticalSearchRange;
|
private final int verticalSearchRange;
|
||||||
|
|
|
@ -65,7 +65,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
+ @Nullable public CompoundTag getSubTag(String s) { return getTagElement(s); } // Paper - OBFHELPER
|
+ @Deprecated @Nullable public CompoundTag getSubTag(String s) { return getTagElement(s); } // Paper - OBFHELPER
|
||||||
@Nullable
|
@Nullable
|
||||||
public CompoundTag getTagElement(String key) {
|
public CompoundTag getTagElement(String key) {
|
||||||
return this.tag != null && this.tag.contains(key, 10) ? this.tag.getCompound(key) : null;
|
return this.tag != null && this.tag.contains(key, 10) ? this.tag.getCompound(key) : null;
|
||||||
|
|
|
@ -22,8 +22,6 @@ This will eliminate stale values being flushed to disk
|
||||||
Modified isEmpty to use the isEmpty() method instead of the slightly confusing size() < 1
|
Modified isEmpty to use the isEmpty() method instead of the slightly confusing size() < 1
|
||||||
The point of this is readability, but does have a side-benefit of a small microptimization
|
The point of this is readability, but does have a side-benefit of a small microptimization
|
||||||
|
|
||||||
Finally, added a couple obfhelpers for the modified code
|
|
||||||
|
|
||||||
diff --git a/src/main/java/net/minecraft/server/players/PlayerList.java b/src/main/java/net/minecraft/server/players/PlayerList.java
|
diff --git a/src/main/java/net/minecraft/server/players/PlayerList.java b/src/main/java/net/minecraft/server/players/PlayerList.java
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/net/minecraft/server/players/PlayerList.java
|
--- a/src/main/java/net/minecraft/server/players/PlayerList.java
|
||||||
|
|
|
@ -13,7 +13,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
private int villagerXp;
|
private int villagerXp;
|
||||||
private long lastRestockGameTime;
|
private long lastRestockGameTime;
|
||||||
- private int numberOfRestocksToday;
|
- private int numberOfRestocksToday;
|
||||||
+ private int numberOfRestocksToday; public int getRestocksToday(){ return this.numberOfRestocksToday; } public void setRestocksToday(int restocksToday){ this.numberOfRestocksToday = restocksToday; } // Paper OBFHELPER
|
+ private int numberOfRestocksToday; @Deprecated public int getRestocksToday(){ return this.numberOfRestocksToday; } @Deprecated public void setRestocksToday(int restocksToday){ this.numberOfRestocksToday = restocksToday; } // Paper OBFHELPER
|
||||||
private long lastRestockCheckDayTime;
|
private long lastRestockCheckDayTime;
|
||||||
private boolean assignProfessionWhenSpawned;
|
private boolean assignProfessionWhenSpawned;
|
||||||
private static final ImmutableList<MemoryModuleType<?>> MEMORY_TYPES = ImmutableList.of(MemoryModuleType.HOME, MemoryModuleType.JOB_SITE, MemoryModuleType.POTENTIAL_JOB_SITE, MemoryModuleType.MEETING_POINT, MemoryModuleType.NEAREST_LIVING_ENTITIES, MemoryModuleType.NEAREST_VISIBLE_LIVING_ENTITIES, MemoryModuleType.VISIBLE_VILLAGER_BABIES, MemoryModuleType.NEAREST_PLAYERS, MemoryModuleType.NEAREST_VISIBLE_PLAYER, MemoryModuleType.NEAREST_VISIBLE_ATTACKABLE_PLAYER, MemoryModuleType.NEAREST_VISIBLE_WANTED_ITEM, MemoryModuleType.WALK_TARGET, new MemoryModuleType[]{MemoryModuleType.LOOK_TARGET, MemoryModuleType.INTERACTION_TARGET, MemoryModuleType.BREED_TARGET, MemoryModuleType.PATH, MemoryModuleType.DOORS_TO_CLOSE, MemoryModuleType.NEAREST_BED, MemoryModuleType.HURT_BY, MemoryModuleType.HURT_BY_ENTITY, MemoryModuleType.NEAREST_HOSTILE, MemoryModuleType.SECONDARY_JOB_SITE, MemoryModuleType.HIDING_PLACE, MemoryModuleType.HEARD_BELL_TIME, MemoryModuleType.CANT_REACH_WALK_TARGET_SINCE, MemoryModuleType.LAST_SLEPT, MemoryModuleType.LAST_WOKEN, MemoryModuleType.LAST_WORKED_AT_POI, MemoryModuleType.GOLEM_DETECTED_RECENTLY});
|
private static final ImmutableList<MemoryModuleType<?>> MEMORY_TYPES = ImmutableList.of(MemoryModuleType.HOME, MemoryModuleType.JOB_SITE, MemoryModuleType.POTENTIAL_JOB_SITE, MemoryModuleType.MEETING_POINT, MemoryModuleType.NEAREST_LIVING_ENTITIES, MemoryModuleType.NEAREST_VISIBLE_LIVING_ENTITIES, MemoryModuleType.VISIBLE_VILLAGER_BABIES, MemoryModuleType.NEAREST_PLAYERS, MemoryModuleType.NEAREST_VISIBLE_PLAYER, MemoryModuleType.NEAREST_VISIBLE_ATTACKABLE_PLAYER, MemoryModuleType.NEAREST_VISIBLE_WANTED_ITEM, MemoryModuleType.WALK_TARGET, new MemoryModuleType[]{MemoryModuleType.LOOK_TARGET, MemoryModuleType.INTERACTION_TARGET, MemoryModuleType.BREED_TARGET, MemoryModuleType.PATH, MemoryModuleType.DOORS_TO_CLOSE, MemoryModuleType.NEAREST_BED, MemoryModuleType.HURT_BY, MemoryModuleType.HURT_BY_ENTITY, MemoryModuleType.NEAREST_HOSTILE, MemoryModuleType.SECONDARY_JOB_SITE, MemoryModuleType.HIDING_PLACE, MemoryModuleType.HEARD_BELL_TIME, MemoryModuleType.CANT_REACH_WALK_TARGET_SINCE, MemoryModuleType.LAST_SLEPT, MemoryModuleType.LAST_WOKEN, MemoryModuleType.LAST_WORKED_AT_POI, MemoryModuleType.GOLEM_DETECTED_RECENTLY});
|
||||||
|
|
|
@ -12,7 +12,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
return this.set(this.getX() + direction.getStepX() * distance, this.getY() + direction.getStepY() * distance, this.getZ() + direction.getStepZ() * distance);
|
return this.set(this.getX() + direction.getStepX() * distance, this.getY() + direction.getStepY() * distance, this.getZ() + direction.getStepZ() * distance);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ public BlockPos.MutableBlockPos withOffset(int x, int y, int z) { return move(x, y, z); } // Paper - OBFHELPER
|
+ @Deprecated public BlockPos.MutableBlockPos withOffset(int x, int y, int z) { return move(x, y, z); } // Paper - OBFHELPER
|
||||||
public BlockPos.MutableBlockPos move(int dx, int dy, int dz) {
|
public BlockPos.MutableBlockPos move(int dx, int dy, int dz) {
|
||||||
return this.set(this.getX() + dx, this.getY() + dy, this.getZ() + dz);
|
return this.set(this.getX() + dx, this.getY() + dy, this.getZ() + dz);
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,9 +24,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
private final MinecraftServer server;
|
private final MinecraftServer server;
|
||||||
public ServerPlayer player;
|
public ServerPlayer player;
|
||||||
private int tickCount;
|
private int tickCount;
|
||||||
- private long keepAliveTime; private void setLastPing(long lastPing) { this.keepAliveTime = lastPing;}; private long getLastPing() { return this.keepAliveTime;}; // Paper - OBFHELPER
|
- private long keepAliveTime; @Deprecated private void setLastPing(long lastPing) { this.keepAliveTime = lastPing;}; @Deprecated private long getLastPing() { return this.keepAliveTime;}; // Paper - OBFHELPER
|
||||||
- private boolean keepAlivePending; private void setPendingPing(boolean isPending) { this.keepAlivePending = isPending;}; private boolean isPendingPing() { return this.keepAlivePending;}; // Paper - OBFHELPER
|
- private boolean keepAlivePending; @Deprecated private void setPendingPing(boolean isPending) { this.keepAlivePending = isPending;}; @Deprecated private boolean isPendingPing() { return this.keepAlivePending;}; // Paper - OBFHELPER
|
||||||
- private long keepAliveChallenge; private void setKeepAliveID(long keepAliveID) { this.keepAliveChallenge = keepAliveID;}; private long getKeepAliveID() {return this.keepAliveChallenge; }; // Paper - OBFHELPER
|
- private long keepAliveChallenge; @Deprecated private void setKeepAliveID(long keepAliveID) { this.keepAliveChallenge = keepAliveID;}; @Deprecated private long getKeepAliveID() {return this.keepAliveChallenge; }; // Paper - OBFHELPER
|
||||||
+ private long keepAliveTime = Util.getMillis();
|
+ private long keepAliveTime = Util.getMillis();
|
||||||
+ private boolean keepAlivePending;
|
+ private boolean keepAlivePending;
|
||||||
+ private long keepAliveChallenge;
|
+ private long keepAliveChallenge;
|
||||||
|
|
Loading…
Reference in a new issue