net.minecraft.world.item

public class AdventureModePredicate

csc
net.minecraft.world.item.AdventureModePredicate
net.minecraft.class_6538
net.minecraft.unmapped.C_jrmfdips
net.minecraft.item.BlockPredicatesChecker
net.minecraft.item.AdventureModePredicate
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
f_euvabnka
SINGLE_CODEC
SINGLE_CODEC
f_316464_
private static final com.mojang.serialization.Codec<AdventureModePredicate>
f
FULL_CODEC
field_49250
f_mxytkpgf
FULL_CODEC
FULL_CODEC
f_316127_
public static final com.mojang.serialization.Codec<AdventureModePredicate>
a
CODEC
field_49245
f_qhqqksna
CODEC
CODEC
f_314196_
public static final StreamCodec<RegistryFriendlyByteBuf, AdventureModePredicate>
b
STREAM_CODEC
field_49246
f_ajuiaokq
PACKET_CODEC
PACKET_CODEC
f_315519_
public static final Component
c
CAN_BREAK_HEADER
field_49247
f_kdzcvhec
CAN_BREAK_TEXT
CAN_BREAK
f_315565_
public static final Component
d
CAN_PLACE_HEADER
field_49248
f_qenshxcz
CAN_PLACE_TEXT
CAN_PLACE
f_314797_
private static final Component
g
UNKNOWN_USE
field_49251
f_tjujzjwe
CAN_USE_UNKNOWN_TEXT
UNKNOWN_USE
f_314193_
private final List<BlockPredicate>
h
predicates
field_49252
f_gvlnffkl
predicates
predicates
f_316891_
private final boolean
i
showInTooltip
field_49253
f_hbzavtvn
showInTooltip
shownInTooltip
f_316745_
private final List<Component>
j
tooltip
field_49254
f_evrtcdqp
tooltipText
tooltipText
f_314142_
private BlockInWorld
k
lastCheckedBlock
field_34450
f_wrwzafhl
cachedPos
lastCheckedBlock
f_314808_
private boolean
l
lastResult
field_34451
f_tcoxgbes
lastResult
lastResult
f_316657_
private boolean
m
checksBlockEntity
field_34452
f_oievdtwg
nbtAware
checksBlockEntities
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)
m_twhujwls(C_gogfiawf arg0, C_gogfiawf arg1, boolean arg2)
canUseCache(CachedBlockPosition pos, CachedBlockPosition cachedPos, boolean nbtAware)
areSameBlocks(CachedBlockPosition pos, CachedBlockPosition cachedPos, boolean checksBlockEntities)
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)
m_ymdnwpdd(C_gogfiawf arg0)
check(CachedBlockPosition cachedPos)
test(CachedBlockPosition pos)
m_322201_(C_2070_ arg0)
public void
a(Consumer<wz> arg0)
addToTooltip(Consumer<Component> arg0)
method_57330(Consumer<class_2561> arg0)
m_ljilgubi(Consumer<C_rdaqiwdt> arg0)
addTooltips(Consumer<Text> adder)
addToTooltip(Consumer<Text> consumer)
m_318685_(Consumer<C_4996_> arg0)
public AdventureModePredicate
a(boolean arg0)
withTooltip(boolean arg0)
method_58402(boolean arg0)
m_mkeixgnl(boolean arg0)
withShowInTooltip(boolean showInTooltip)
withShownInTooltip(boolean shownInTooltip)
m_322095_(boolean arg0)
private static List<Component>
a(List<aw> arg0)
computeTooltip(List<BlockPredicate> arg0)
method_57329(List<class_4550> arg0)
m_aawzusnj(List<C_uuwlfkxz> arg0)
getTooltipText(List<BlockPredicate> blockPredicates)
getTooltipText(List<BlockPredicate> predicates)
m_322824_(List<C_411_> p_328947_)
public boolean
a()
showInTooltip()
method_57324()
m_pkxzfvxm()
showInTooltip()
isShownInTooltip()
m_324667_()