Skip to content

Commit 9caf937

Browse files
committed
Update to 1.16.2-rc1
1 parent d0c503e commit 9caf937

23 files changed

+101
-98
lines changed

docs/code_hierarchies/call-hierarchy-Entity.random.txt

Lines changed: 53 additions & 53 deletions
Large diffs are not rendered by default.

docs/code_hierarchies/call-hierarchy-ItemStack.damage.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Method
22
damage(int, T, Consumer<T>)
33
Found usages
44
Unclassified usage
5-
Gradle: net.minecraft:minecraft:1.16-pre2-mapped-net.fabricmc.yarn-1.16-pre2+build.2-v2
5+
Gradle: net.minecraft:minecraft:1.16.2-rc1-mapped-net.fabricmc.yarn-1.16.2-rc1+build.6-v2
66
net.minecraft.block
77
BeehiveBlock
88
onUse(BlockState, World, BlockPos, PlayerEntity, Hand, BlockHitResult)
@@ -16,11 +16,10 @@ onUse(BlockState, World, BlockPos, PlayerEntity, Hand, BlockHitResult)
1616
net.minecraft.enchantment
1717
ThornsEnchantment
1818
onUserDamaged(LivingEntity, Entity, int)
19-
((ItemStack)entry.getValue()).damage(3, (LivingEntity)user, (Consumer)((livingEntity) -> {
20-
((ItemStack)entry.getValue()).damage(1, (LivingEntity)user, (Consumer)((livingEntity) -> {
19+
((ItemStack)entry.getValue()).damage(2, (LivingEntity)user, (Consumer)((livingEntity) -> {
2120
net.minecraft.entity
2221
LivingEntity
23-
method_29502()
22+
addSoulSpeedBoostIfNeeded()
2423
itemStack.damage(1, (LivingEntity)this, (Consumer)((livingEntity) -> {
2524
damage(DamageSource, float)
2625
this.getEquippedStack(EquipmentSlot.HEAD).damage((int)(amount * 4.0F + this.random.nextFloat() * amount * 2.0F), this, (livingEntityx) -> {

docs/code_hierarchies/call-hierarchy-LivingEntity.getRandom.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ net.earthcomputer.clientcommands.features
77
PlayerRandCracker
88
singlePlayerCrackRNG()
99
long seed = getSeed(serverPlayer.getRandom());
10-
Gradle: net.minecraft:minecraft:1.16-pre2-mapped-net.fabricmc.yarn-1.16-pre2+build.2-v2
10+
Gradle: net.minecraft:minecraft:1.16.2-rc1-mapped-net.fabricmc.yarn-1.16.2-rc1+build.6-v2
1111
net.minecraft.advancement
1212
AdvancementRewards
1313
apply(ServerPlayerEntity)
@@ -31,11 +31,11 @@ CrossbowUser
3131
shoot(LivingEntity, LivingEntity, ProjectileEntity, float, float)
3232
entity.playSound(SoundEvents.ITEM_CROSSBOW_SHOOT, 1.0F, 1.0F / (entity.getRandom().nextFloat() * 0.4F + 0.8F));
3333
LivingEntity
34-
method_29502()
34+
addSoulSpeedBoostIfNeeded()
3535
if (this.getRandom().nextFloat() < 0.04F) {
3636
net.minecraft.entity.ai
3737
TargetFinder
38-
findTarget(MobEntityWithAi, int, int, int, Vec3d, boolean, double, ...)
38+
findTarget(PathAwareEntity, int, int, int, Vec3d, boolean, double, ...)
3939
Random random = mob.getRandom();
4040
net.minecraft.entity.ai.brain.task
4141
BreedTask
@@ -74,6 +74,7 @@ tick()
7474
if (this.mob.getRandom().nextInt(20) == 0) {
7575
CrossbowAttackGoal
7676
tick()
77+
this.field_25697 = field_25696.choose(this.actor.getRandom());
7778
this.chargedTicksLeft = 20 + this.actor.getRandom().nextInt(20);
7879
DolphinJumpGoal
7980
canStart()
@@ -127,7 +128,7 @@ tick()
127128
....g...
128129
this.updateCountdownTicks = 4 + this.mob.getRandom().nextInt(7);
129130
MoveToTargetPosGoal
130-
getInterval(MobEntityWithAi)
131+
getInterval(PathAwareEntity)
131132
return 200 + mob.getRandom().nextInt(200);
132133
start()
133134
this.safeWaitingTime = this.mob.getRandom().nextInt(this.mob.getRandom().nextInt(1200) + 1200) + 1200;
@@ -249,8 +250,8 @@ shouldContinue()
249250
if (f >= 0.5F && this.mob.getRandom().nextInt(100) == 0) {
250251
net.minecraft.entity.passive
251252
AnimalEntity
252-
breed(World, AnimalEntity)
253-
world.spawnEntity(new ExperienceOrbEntity(world, this.getX(), this.getY(), this.getZ(), this.getRandom().nextInt(7) + 1));
253+
breed(ServerWorld, AnimalEntity)
254+
serverWorld.spawnEntity(new ExperienceOrbEntity(serverWorld, this.getX(), this.getY(), this.getZ(), this.getRandom().nextInt(7) + 1));
254255
CatEntity.SleepWithOwnerGoal
255256
dropMorningGifts()
256257
Random random = this.cat.getRandom();

docs/code_hierarchies/method-hierarchy-Entity.damage.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,18 @@ LivingEntity (net.minecraft.entity)
1515
EnderDragonEntity (net.minecraft.entity.boss.dragon)
1616
FlyingEntity (net.minecraft.entity.mob)
1717
GhastEntity (net.minecraft.entity.mob)
18-
MobEntityWithAi (net.minecraft.entity.mob)
18+
PathAwareEntity (net.minecraft.entity.mob)
1919
GolemEntity (net.minecraft.entity.passive)
2020
IronGolemEntity (net.minecraft.entity.passive)
2121
ShulkerEntity (net.minecraft.entity.mob)
2222
HostileEntity (net.minecraft.entity.mob)
23+
AbstractPiglinEntity (net.minecraft.entity.mob)
24+
PiglinBruteEntity (net.minecraft.entity.mob)
25+
PiglinEntity (net.minecraft.entity.mob)
2326
EndermanEntity (net.minecraft.entity.mob)
2427
GuardianEntity (net.minecraft.entity.mob)
2528
PatrolEntity (net.minecraft.entity.mob)
2629
RaiderEntity (net.minecraft.entity.raid)
27-
PiglinEntity (net.minecraft.entity.mob)
2830
SilverfishEntity (net.minecraft.entity.mob)
2931
WitherEntity (net.minecraft.entity.boss)
3032
ZoglinEntity (net.minecraft.entity.mob)

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ org.gradle.jvmargs=-Xmx1G
33

44
# Fabric Properties
55
# check these on https://modmuss50.me/fabric.html
6-
minecraft_version=1.16
7-
yarn_mappings=1.16+build.1
6+
minecraft_version=1.16.2-rc1
7+
yarn_mappings=1.16.2-rc1+build.6
88
loader_version=0.8.8+build.202
99

1010
# Mod Properties
@@ -14,4 +14,4 @@ org.gradle.jvmargs=-Xmx1G
1414

1515
# Dependencies
1616
# also check this on https://modmuss50.me/fabric.html
17-
fabric_version=0.13.1+build.370-1.16
17+
fabric_version=0.17.1+build.394-1.16

src/main/java/net/earthcomputer/clientcommands/MathUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static Vec3d getClosestVisiblePoint(World world, BlockPos targetPos, Vec3
5757
obscurers.add(new Box(x1, y1, z1, x2, y2, z2).offset(pos).expand(EPSILON)));
5858
}
5959
}
60-
for (Entity entity : world.getEntities(excludingEntity, totalArea, entity -> !entity.isSpectator() && entity.collides())) {
60+
for (Entity entity : world.getOtherEntities(excludingEntity, totalArea, entity -> !entity.isSpectator() && entity.collides())) {
6161
obscurers.add(entity.getBoundingBox().expand(entity.getTargetingMargin() + EPSILON));
6262
}
6363
List<Box> targetBoxes = new ArrayList<>();

src/main/java/net/earthcomputer/clientcommands/command/CalcStackCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import net.minecraft.text.TranslatableText;
1010
import net.minecraft.util.Hand;
1111

12-
import static net.minecraft.command.arguments.ItemStackArgumentType.*;
12+
import static net.minecraft.command.argument.ItemStackArgumentType.*;
1313
import static com.mojang.brigadier.arguments.IntegerArgumentType.*;
1414
import static net.earthcomputer.clientcommands.command.ClientCommandManager.*;
1515
import static net.minecraft.server.command.CommandManager.*;

src/main/java/net/earthcomputer/clientcommands/command/ClientCommandManager.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
public class ClientCommandManager {
1616

17-
private static Set<String> clientSideCommands = new HashSet<>();
17+
private static final Set<String> clientSideCommands = new HashSet<>();
1818

1919
public static void clearClientSideCommands() {
2020
clientSideCommands.clear();
@@ -66,7 +66,7 @@ public static int executeCommand(StringReader reader, String command) {
6666
} catch (Exception e) {
6767
LiteralText error = new LiteralText(e.getMessage() == null ? e.getClass().getName() : e.getMessage());
6868
ClientCommandManager.sendError(new TranslatableText("command.failed")
69-
.styled(style -> style.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, error))));
69+
.styled(style -> style.withHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, error))));
7070
e.printStackTrace();
7171
}
7272
return 1;
@@ -77,14 +77,14 @@ public static Text getCoordsTextComponent(BlockPos pos) {
7777
.withFormatting(Formatting.UNDERLINE)
7878
.withClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND,
7979
String.format("/clook block %d %d %d", pos.getX(), pos.getY(), pos.getZ())))
80-
.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT,
80+
.withHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT,
8181
new LiteralText(String.format("/clook block %d %d %d", pos.getX(), pos.getY(), pos.getZ())))));
8282
}
8383

8484
public static Text getCommandTextComponent(String translationKey, String command) {
8585
return new TranslatableText(translationKey).styled(style -> style.withFormatting(Formatting.UNDERLINE)
8686
.withClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, command))
87-
.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new LiteralText(command))));
87+
.withHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new LiteralText(command))));
8888
}
8989

9090
}

src/main/java/net/earthcomputer/clientcommands/command/ClientEntitySelector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import com.mojang.brigadier.exceptions.CommandSyntaxException;
44
import net.minecraft.client.MinecraftClient;
5-
import net.minecraft.command.arguments.EntityArgumentType;
5+
import net.minecraft.command.argument.EntityArgumentType;
66
import net.minecraft.entity.Entity;
77
import net.minecraft.server.command.ServerCommandSource;
88
import net.minecraft.util.math.Vec3d;

src/main/java/net/earthcomputer/clientcommands/command/FindItemCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import net.minecraft.client.MinecraftClient;
1919
import net.minecraft.client.gui.screen.Screen;
2020
import net.minecraft.client.gui.screen.ingame.ScreenHandlerProvider;
21-
import net.minecraft.command.arguments.ItemPredicateArgumentType.ItemPredicateArgument;
21+
import net.minecraft.command.argument.ItemPredicateArgumentType.ItemPredicateArgument;
2222
import net.minecraft.entity.Entity;
2323
import net.minecraft.entity.player.PlayerEntity;
2424
import net.minecraft.entity.player.PlayerInventory;

0 commit comments

Comments
 (0)