mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 11:05:40 +00:00
Update to 1.17
Update to Official classnames Patchwork Make the game compile and run Merge in the new HUD overlay API Merge in the new render properties API PEEL Use Gradle 7.2 snapshot to fix eclipse integration bug in 7.1, Would use 7.0 but FG needs 7.1 for some reason. New FML installer Update to 1.17.1 Co-authored-by: LexManos <[email protected]> Co-authored-by: SizableShrimp <[email protected]> Co-authored-by: cpw <[email protected]> Co-authored-by: Curle <[email protected]> Co-authored-by: Unnoen <[email protected]> Co-authored-by: covers1624 <[email protected]> Co-authored-by: DaemonUmbra <[email protected]> Co-authored-by: gigaherz <[email protected]> Signed-off-by: SizableShrimp <[email protected]>
This commit is contained in:
1 parent
064ae6961b
commit
be5446b91c
1990 files changed
+35661
-37544
No files matched your search
@@ -19,9 +19,9 @@
|
||||
|
||||
package net.minecraftforge.debug;
|
||||
|
||||
import net.minecraft.fluid.Fluids;
|
||||
import net.minecraft.nbt.CompoundNBT;
|
||||
import net.minecraft.nbt.NBTDynamicOps;
|
||||
import net.minecraft.world.level.material.Fluids;
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
import net.minecraft.nbt.NbtOps;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
@@ -49,13 +49,13 @@ public class CodecsTest
|
||||
FluidStack withTag = new FluidStack(Fluids.LAVA, 10);
|
||||
withTag.getOrCreateChildTag("test").putString("value", "This is a test");
|
||||
|
||||
CompoundNBT noTag_write = noTag.writeToNBT(new CompoundNBT());
|
||||
CompoundNBT withTag_write = withTag.writeToNBT(new CompoundNBT());
|
||||
CompoundTag noTag_write = noTag.writeToNBT(new CompoundTag());
|
||||
CompoundTag withTag_write = withTag.writeToNBT(new CompoundTag());
|
||||
|
||||
CompoundNBT noTag_encode = (CompoundNBT)FluidStack.CODEC.encodeStart(NBTDynamicOps.INSTANCE, noTag).getOrThrow(false, error -> {
|
||||
CompoundTag noTag_encode = (CompoundTag)FluidStack.CODEC.encodeStart(NbtOps.INSTANCE, noTag).getOrThrow(false, error -> {
|
||||
LOGGER.error("Error encoding noTag: {}", error);
|
||||
});
|
||||
CompoundNBT withTag_encode = (CompoundNBT)FluidStack.CODEC.encodeStart(NBTDynamicOps.INSTANCE, withTag).getOrThrow(false, error -> {
|
||||
CompoundTag withTag_encode = (CompoundTag)FluidStack.CODEC.encodeStart(NbtOps.INSTANCE, withTag).getOrThrow(false, error -> {
|
||||
LOGGER.error("Error encoding withTag: {}", error);
|
||||
});
|
||||
|
||||
@@ -64,10 +64,10 @@ public class CodecsTest
|
||||
if (!withTag_write.equals(withTag_encode))
|
||||
throw new IllegalStateException("Encoded withTag does not match");
|
||||
|
||||
FluidStack noTag_decode = FluidStack.CODEC.decode(NBTDynamicOps.INSTANCE, noTag_encode).getOrThrow(false, error -> {
|
||||
FluidStack noTag_decode = FluidStack.CODEC.decode(NbtOps.INSTANCE, noTag_encode).getOrThrow(false, error -> {
|
||||
LOGGER.error("Error decoding noTag: {}", error);
|
||||
}).getFirst();
|
||||
FluidStack withTag_decode = FluidStack.CODEC.decode(NBTDynamicOps.INSTANCE, withTag_encode).getOrThrow(false, error -> {
|
||||
FluidStack withTag_decode = FluidStack.CODEC.decode(NbtOps.INSTANCE, withTag_encode).getOrThrow(false, error -> {
|
||||
LOGGER.error("Error decoding withTag: {}", error);
|
||||
}).getFirst();
|
||||
|
||||
|
||||
Reference in new issue
Block a user