26.3-rc-3
This commit is contained in:
1 parent
4a97c841b8
commit
7cfb996bd3
16 files changed
+121
-202
No files matched your search
@@ -25,6 +25,7 @@ import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.server.level.ColumnPos;
|
||||
import net.minecraft.server.level.ServerLevel;
|
||||
import net.minecraft.tags.TagKey;
|
||||
import net.minecraft.util.ARGB;
|
||||
import net.minecraft.util.StringRepresentable;
|
||||
import net.minecraft.world.damagesource.DamageSource;
|
||||
import net.minecraft.world.entity.Entity;
|
||||
@@ -60,6 +61,7 @@ import java.util.UUID;
|
||||
import java.util.function.Predicate;
|
||||
import java.util.stream.StreamSupport;
|
||||
|
||||
import org.joml.Vector3fc;
|
||||
import org.jspecify.annotations.Nullable;
|
||||
|
||||
public class ValueConversions
|
||||
@@ -140,6 +142,11 @@ public class ValueConversions
|
||||
return new NumericValue(value * 256 + 255);
|
||||
}
|
||||
|
||||
public static Value ofRGB(Vector3fc value)
|
||||
{
|
||||
return new NumericValue(ARGB.colorFromVector3f(value));
|
||||
}
|
||||
|
||||
public static Level dimFromValue(Value dimensionValue, MinecraftServer server)
|
||||
{
|
||||
if (dimensionValue instanceof EntityValue)
|
||||
|
||||
Reference in new issue
Block a user