Package net.minecraft.world.item
Class AdventureModePredicate
java.lang.Object
net.minecraft.world.item.AdventureModePredicate
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Component
static final Component
private boolean
static final com.mojang.serialization.Codec
<AdventureModePredicate> private static final com.mojang.serialization.Codec
<AdventureModePredicate> private BlockInWorld
private boolean
private final List
<BlockPredicate> private final boolean
private static final com.mojang.serialization.Codec
<AdventureModePredicate> static final StreamCodec
<RegistryFriendlyByteBuf, AdventureModePredicate> private static final Component
-
Constructor Summary
ModifierConstructorDescriptionAdventureModePredicate
(List<BlockPredicate> p_336068_, boolean p_330877_) private
AdventureModePredicate
(List<BlockPredicate> p_330484_, boolean p_331616_, List<Component> p_329534_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToTooltip
(Consumer<Component> p_334654_) private static boolean
areSameBlocks
(BlockInWorld p_330769_, BlockInWorld p_330025_, boolean p_331117_) computeTooltip
(List<BlockPredicate> p_328947_) boolean
int
hashCode()
boolean
boolean
test
(BlockInWorld p_333716_) toString()
withTooltip
(boolean p_335029_)
-
Field Details
-
SIMPLE_CODEC
-
FULL_CODEC
-
CODEC
-
STREAM_CODEC
-
CAN_BREAK_HEADER
-
CAN_PLACE_HEADER
-
UNKNOWN_USE
-
predicates
-
showInTooltip
private final boolean showInTooltip -
tooltip
-
lastCheckedBlock
-
lastResult
private boolean lastResult -
checksBlockEntity
private boolean checksBlockEntity
-
-
Constructor Details
-
AdventureModePredicate
private AdventureModePredicate(List<BlockPredicate> p_330484_, boolean p_331616_, List<Component> p_329534_) -
AdventureModePredicate
-
-
Method Details
-
areSameBlocks
private static boolean areSameBlocks(BlockInWorld p_330769_, @Nullable BlockInWorld p_330025_, boolean p_331117_) -
test
-
addToTooltip
-
withTooltip
-
computeTooltip
-
showInTooltip
public boolean showInTooltip() -
equals
-
hashCode
public int hashCode() -
toString
-