Update mappings

Use alternative fastutil javadoc link.
This commit is contained in:
modmuss50 2022-11-24 15:18:53 +00:00
parent 1c39312707
commit 28ac448f9c
5 changed files with 14 additions and 14 deletions
build.gradle
fabric-networking-api-v1/src/testmod/java/net/fabricmc/fabric/test/networking/channeltest
fabric-transfer-api-v1/src
main/java/net/fabricmc/fabric/mixin/transfer
testmod/java/net/fabricmc/fabric/test/transfer/gametests
gradle.properties

View file

@ -322,7 +322,7 @@ javadoc {
"https://javadoc.lwjgl.org/",
"https://www.javadoc.io/doc/com.google.code.gson/gson/2.10/",
"https://javadoc.io/doc/org.jetbrains/annotations/latest/",
"https://fastutil.di.unimi.it/docs/",
"https://javadoc.io/doc/it.unimi.dsi/fastutil/",
"https://javadoc.scijava.org/JOML/",
"https://maven.fabricmc.net/docs/yarn-${rootProject.minecraft_version}${project.yarn_version}/"
)

View file

@ -17,7 +17,7 @@
package net.fabricmc.fabric.test.networking.channeltest;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.gui.screen.Tooltip;
import net.minecraft.client.gui.tooltip.Tooltip;
import net.minecraft.client.gui.widget.ButtonWidget;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.text.Text;

View file

@ -41,7 +41,7 @@ public class ChiseledBookshelfBlockEntityMixin implements SpecialLogicInventory
@Shadow
private DefaultedList<ItemStack> inventory;
@Shadow
private int field_41601; // last interacted slot
private int lastInteractedSlot; // last interacted slot
@Unique
private boolean fabric_suppressSpecialLogic = false;
@ -67,24 +67,24 @@ public class ChiseledBookshelfBlockEntityMixin implements SpecialLogicInventory
private final SnapshotParticipant<Integer> fabric_lastInteractedParticipant = new SnapshotParticipant<>() {
@Override
protected Integer createSnapshot() {
return field_41601;
return lastInteractedSlot;
}
@Override
protected void readSnapshot(Integer snapshot) {
field_41601 = snapshot;
lastInteractedSlot = snapshot;
}
@Override
protected void onFinalCommit() {
updateState(field_41601);
updateState(lastInteractedSlot);
}
};
@Override
public void fabric_onTransfer(int slot, TransactionContext transaction) {
fabric_lastInteractedParticipant.updateSnapshots(transaction);
field_41601 = slot;
lastInteractedSlot = slot;
}
@Override

View file

@ -172,27 +172,27 @@ public class VanillaStorageTests {
// Second, check that we correctly update the last modified slot.
try (Transaction tx = Transaction.openOuter()) {
if (storage.getSlot(1).insert(book, 1, tx) != 1) throw new GameTestException("Should have inserted 1 book");
if (bookshelf.method_47887() != 1) throw new GameTestException("Last modified slot should be 1");
if (bookshelf.getLastInteractedSlot() != 1) throw new GameTestException("Last modified slot should be 1");
if (storage.getSlot(2).insert(book, 1, tx) != 1) throw new GameTestException("Should have inserted 1 book");
if (bookshelf.method_47887() != 2) throw new GameTestException("Last modified slot should be 2");
if (bookshelf.getLastInteractedSlot() != 2) throw new GameTestException("Last modified slot should be 2");
if (storage.getSlot(1).extract(book, 1, tx) != 1) throw new GameTestException("Should have extracted 1 book");
if (bookshelf.method_47887() != 1) throw new GameTestException("Last modified slot should be 1");
if (bookshelf.getLastInteractedSlot() != 1) throw new GameTestException("Last modified slot should be 1");
// Now, create an aborted nested transaction.
try (Transaction nested = tx.openNested()) {
if (storage.insert(book, 100, nested) != 5) throw new GameTestException("Should have inserted 5 books");
// Now, last modified slot should be 5.
if (bookshelf.method_47887() != 5) throw new GameTestException("Last modified slot should be 5");
if (bookshelf.getLastInteractedSlot() != 5) throw new GameTestException("Last modified slot should be 5");
}
// And it's back to 1 in theory.
if (bookshelf.method_47887() != 1) throw new GameTestException("Last modified slot should be 1");
if (bookshelf.getLastInteractedSlot() != 1) throw new GameTestException("Last modified slot should be 1");
tx.commit();
}
if (bookshelf.method_47887() != 1) throw new GameTestException("Last modified slot should be 1 after committing transaction");
if (bookshelf.getLastInteractedSlot() != 1) throw new GameTestException("Last modified slot should be 1 after committing transaction");
// Let's also check the state properties. Only slot 2 should be occupied.
BlockState state = bookshelf.getCachedState();

View file

@ -3,7 +3,7 @@ org.gradle.parallel=true
version=0.67.1
minecraft_version=1.19.3-pre2
yarn_version=+build.1
yarn_version=+build.6
loader_version=0.14.10
prerelease=true