update to 24w33a
This commit is contained in:
1 parent
9940feb7d3
commit
d11586fdaf
58 files changed
+379
-875
No files matched your search
@@ -10,6 +10,7 @@ import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
|
||||
import net.minecraft.advancements.critereon.MinMaxBounds;
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.core.GlobalPos;
|
||||
import net.minecraft.core.HolderSet;
|
||||
import net.minecraft.core.Registry;
|
||||
import net.minecraft.core.RegistryAccess;
|
||||
import net.minecraft.core.Vec3i;
|
||||
@@ -189,6 +190,11 @@ public class ValueConversions
|
||||
return of(tagKey.location());
|
||||
}
|
||||
|
||||
public static Value of(HolderSet.Named<?> tagKey)
|
||||
{
|
||||
return of(tagKey.key().location());
|
||||
}
|
||||
|
||||
public static Value of(@Nullable ResourceLocation id)
|
||||
{
|
||||
if (id == null) // should be Value.NULL
|
||||
|
||||
Reference in new issue
Block a user