net.minecraft.world.item

public class AdventureModePredicate

csc
net.minecraft.world.item.AdventureModePredicate
net.minecraft.class_6538
net.minecraft.item.BlockPredicatesChecker
net.minecraft.src.C_313672_
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
f_316464_
private static final com.mojang.serialization.Codec<AdventureModePredicate>
f
FULL_CODEC
field_49250
FULL_CODEC
f_316127_
public static final com.mojang.serialization.Codec<AdventureModePredicate>
a
CODEC
field_49245
CODEC
f_314196_
public static final StreamCodec<RegistryFriendlyByteBuf, AdventureModePredicate>
b
STREAM_CODEC
field_49246
PACKET_CODEC
f_315519_
public static final Component
c
CAN_BREAK_HEADER
field_49247
CAN_BREAK_TEXT
f_315565_
public static final Component
d
CAN_PLACE_HEADER
field_49248
CAN_PLACE_TEXT
f_314797_
private static final Component
g
UNKNOWN_USE
field_49251
CAN_USE_UNKNOWN_TEXT
f_314193_
private final List<BlockPredicate>
h
predicates
field_49252
predicates
f_316891_
private final boolean
i
showInTooltip
field_49253
showInTooltip
f_316745_
private final List<Component>
j
tooltip
field_49254
tooltipText
f_314142_
private BlockInWorld
k
lastCheckedBlock
field_34450
cachedPos
f_314808_
private boolean
l
lastResult
field_34451
lastResult
f_316657_
private boolean
m
checksBlockEntity
field_34452
nbtAware
f_314757_

Constructor summary

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

Method summary

Modifier and TypeMethod
private static boolean
a(dtg arg0, dtg 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)
m_323601_(C_2070_ p_330769_, C_2070_ p_330025_, boolean p_331117_)
public boolean
a(dtg arg0)
test(BlockInWorld arg0)
method_38070(class_2694 arg0)
check(CachedBlockPosition cachedPos)
m_322201_(C_2070_ arg0)
public void
a(Consumer<wz> arg0)
addToTooltip(Consumer<Component> arg0)
method_57330(Consumer<class_2561> arg0)
addTooltips(Consumer<Text> adder)
m_318685_(Consumer<C_4996_> arg0)
public AdventureModePredicate
a(boolean arg0)
withTooltip(boolean arg0)
method_58402(boolean arg0)
withShowInTooltip(boolean showInTooltip)
m_322095_(boolean arg0)
private static List<Component>
a(List<aw> arg0)
computeTooltip(List<BlockPredicate> arg0)
method_57329(List<class_4550> arg0)
getTooltipText(List<BlockPredicate> blockPredicates)
m_322824_(List<C_411_> p_328947_)
public boolean
a()
showInTooltip()
method_57324()
showInTooltip()
m_324667_()