mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
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.
15 lines
515 B
Java
15 lines
515 B
Java
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");
|
|
}
|
|
}
|