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_331906_, boolean p_331780_) private
AdventureModePredicate
(List<BlockPredicate> p_335644_, boolean p_335774_, List<Component> p_336056_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToTooltip
(Consumer<Component> p_331792_) private static boolean
areSameBlocks
(BlockInWorld p_330901_, BlockInWorld p_331435_, boolean p_332152_) computeTooltip
(List<BlockPredicate> p_332164_) boolean
int
hashCode()
boolean
boolean
test
(BlockInWorld p_331911_) toString()
withTooltip
(boolean p_335684_)
-
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_335644_, boolean p_335774_, List<Component> p_336056_) -
AdventureModePredicate
-
-
Method Details
-
areSameBlocks
private static boolean areSameBlocks(BlockInWorld p_330901_, @Nullable BlockInWorld p_331435_, boolean p_332152_) -
test
-
addToTooltip
-
withTooltip
-
computeTooltip
-
showInTooltip
public boolean showInTooltip() -
equals
-
hashCode
public int hashCode() -
toString
-