net.minecraft.core.component.predicates

public record JukeboxPlayablePredicate

implements SingleComponentItemPredicate<JukeboxPlayable>

kx
net.minecraft.core.component.predicates.JukeboxPlayablePredicate
net.minecraft.class_9790
net.minecraft.predicate.item.JukeboxPlayablePredicate

Field summary

Modifier and TypeField
private final Optional<HolderSet<JukeboxSong>>
c
song
comp_2830
song
public static final com.mojang.serialization.Codec<JukeboxPlayablePredicate>
a
CODEC
field_52020
CODEC

Constructor summary

ModifierConstructor
public (Optional<HolderSet<JukeboxSong>> arg0)

Method summary

Modifier and TypeMethod
public DataComponentType<JukeboxPlayable>
a()
componentType()
method_58163()
getComponentType()
public boolean
a(cyx arg0)
matches(JukeboxPlayable arg0)
method_60731(class_9792 arg0)
test(JukeboxPlayableComponent arg0)
public static JukeboxPlayablePredicate
b()
any()
method_60732()
empty()
public Optional<HolderSet<JukeboxSong>>
c()
song()
comp_2830()
song()