mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
Type platform keys and fold pack references into @Ref(kind)
Batch 6, findings 41 and 42. - Platform keys travel as ResourceId: enchantments, attributes, sounds, particles, potions, loot tables, sapling species, marker tags, upper dimension ids and jigsaw start pools. ResourceId.ofPlatformKey normalises a key a pack wrote. - Item and entity types are a ContentKey (Registered id, or Provided provider and name) instead of strings and a special-type flag. - ItemDrop groups into Look, Wear and PlatformExtras; colours are an RGB int and DyeColor, attribute operations an enum. - EntitySpec groups into Appearance, Behaviour, Company, Drops and Arrival, and carries host extensions instead of Iris-only fields. - @Ref(kind = Type.class) replaces @ResourceRef and the PACK_* references; expressions and image maps become the host kinds EXPRESSIONS and IMAGE_MAPS.
This commit is contained in:
1 parent
05f621d82d
commit
6b24e6f150
31 files changed
+620
-295
No files matched your search
@@ -0,0 +1,14 @@
|
||||
package com.volmit.noise;
|
||||
|
||||
import com.volmit.resource.ResourceId;
|
||||
import java.util.Objects;
|
||||
|
||||
/** An expression of the loaded pack, which a {@link NoiseStyle} can use instead of a base style. The host compiles it
|
||||
* and builds its noise ({@link NoiseFactory}); a module only names it, and can see that the pack has it through
|
||||
* {@code PackResources.find(PackResources.EXPRESSIONS, id)}.
|
||||
*/
|
||||
public record PackExpression(ResourceId id) {
|
||||
public PackExpression {
|
||||
Objects.requireNonNull(id, "id");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user