Rosegold::DataComponents::BlockPredicates
Inherits Rosegold::DataComponent / Reference / Object
BlockPredicates - used by can_place_on, can_break. Per BlockPredicate.STREAM_CODEC (1.21.8/1.21.11): Optional<HolderSet<Block>> blocks Optional<StatePropertiesPredicate> properties Optional<NbtPredicate> nbt DataComponentMatchers components (exact + partial predicate maps)
DataComponentMatchers is effectively recursive Slot-component parsing. We read the common empty-map case correctly; any non-empty matchers raise and the packet-layer rescue falls back to RawPacket.
Constructors
new
Sourceread(io) : self
SourceInstance methods
write(io) : Nil
Source