net.minecraft.world.item

public class AdventureModePredicate

cwt
net.minecraft.world.item.AdventureModePredicate
net.minecraft.class_6538
net.minecraft.item.BlockPredicatesChecker

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<AdventureModePredicate>
a
CODEC
field_49245
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, AdventureModePredicate>
b
STREAM_CODEC
field_49246
PACKET_CODEC
public static final Component
c
CAN_BREAK_HEADER
field_49247
CAN_BREAK_TEXT
public static final Component
d
CAN_PLACE_HEADER
field_49248
CAN_PLACE_TEXT
private static final Component
e
UNKNOWN_USE
field_49251
CAN_USE_UNKNOWN_TEXT
private final List<BlockPredicate>
f
predicates
field_49252
predicates
private List<Component>
g
cachedTooltip
field_49254
tooltipText
private BlockInWorld
h
lastCheckedBlock
field_34450
cachedPos
private boolean
i
lastResult
field_34451
lastResult
private boolean
j
checksBlockEntity
field_34452
nbtAware

Constructor summary

ModifierConstructor
public (List<BlockPredicate> predicates)

Method summary

Modifier and TypeMethod
private static boolean
a(dzs arg0, dzs arg1, boolean arg2)
areSameBlocks(BlockInWorld arg0, BlockInWorld arg1, boolean arg2)
method_38071(class_2694 arg0, class_2694 arg1, boolean arg2)
canUseCache(CachedBlockPosition pos, CachedBlockPosition cachedPos, boolean nbtAware)
public boolean
a(dzs arg0)
test(BlockInWorld arg0)
method_38070(class_2694 arg0)
check(CachedBlockPosition cachedPos)
private List<Component>
a()
tooltip()
method_65042()
getOrCreateTooltipText()
public void
a(Consumer<ww> arg0)
addToTooltip(Consumer<Component> arg0)
method_57330(Consumer<class_2561> arg0)
addTooltips(Consumer<Text> adder)
private static List<Component>
a(List<ay> arg0)
computeTooltip(List<BlockPredicate> arg0)
method_57329(List<class_4550> arg0)
createTooltipText(List<BlockPredicate> blockPredicates)