net.minecraft.world.item

public class AdventureModePredicate

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

Field summary

Modifier and TypeField
private static final com.mojang.serialization.Codec<AdventureModePredicate>
e
SIMPLE_CODEC
field_49249
SINGLE_CODEC
private static final com.mojang.serialization.Codec<AdventureModePredicate>
f
FULL_CODEC
field_49250
FULL_CODEC
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
g
UNKNOWN_USE
field_49251
CAN_USE_UNKNOWN_TEXT
private final List<BlockPredicate>
h
predicates
field_49252
predicates
private final boolean
i
showInTooltip
field_49253
showInTooltip
private List<Component>
j
cachedTooltip
field_49254
tooltipText
private BlockInWorld
k
lastCheckedBlock
field_34450
cachedPos
private boolean
l
lastResult
field_34451
lastResult
private boolean
m
checksBlockEntity
field_34452
nbtAware

Constructor summary

ModifierConstructor
public (List<BlockPredicate> predicates, boolean showInTooltip)

Method summary

Modifier and TypeMethod
private static boolean
a(dxc arg0, dxc 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(dxc arg0)
test(BlockInWorld arg0)
method_38070(class_2694 arg0)
check(CachedBlockPosition cachedPos)
private List<Component>
b()
tooltip()
method_65042()
getOrCreateTooltipText()
public void
a(Consumer<wp> arg0)
addToTooltip(Consumer<Component> arg0)
method_57330(Consumer<class_2561> arg0)
addTooltips(Consumer<Text> adder)
public AdventureModePredicate
a(boolean arg0)
withTooltip(boolean arg0)
method_58402(boolean arg0)
withShowInTooltip(boolean showInTooltip)
private static List<Component>
a(List<ay> arg0)
computeTooltip(List<BlockPredicate> arg0)
method_57329(List<class_4550> arg0)
createTooltipText(List<BlockPredicate> blockPredicates)
public boolean
a()
showInTooltip()
method_57324()
showInTooltip()