Class ItemAdventurePredicate.BlockPredicate
java.lang.Object
com.github.retrooper.packetevents.protocol.component.builtin.item.ItemAdventurePredicate.BlockPredicate
- Enclosing class:
ItemAdventurePredicate
-
Constructor Summary
ConstructorsConstructorDescriptionBlockPredicate
(@Nullable MappedEntitySet<StateType.Mapped> blocks, @Nullable List<ItemAdventurePredicate.PropertyMatcher> properties, @Nullable NBTCompound nbt) BlockPredicate
(@Nullable MappedEntitySet<StateType.Mapped> blocks, @Nullable List<ItemAdventurePredicate.PropertyMatcher> properties, @Nullable NBTCompound nbt, ComponentMatchers matchers) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProperty
(ItemAdventurePredicate.PropertyMatcher propertyMatcher) boolean
@Nullable MappedEntitySet
<StateType.Mapped> Added with 1.21.5@Nullable NBTCompound
getNbt()
@Nullable List
<ItemAdventurePredicate.PropertyMatcher> int
hashCode()
read
(PacketWrapper<?> wrapper) void
setBlocks
(@Nullable MappedEntitySet<StateType.Mapped> blocks) void
setMatchers
(ComponentMatchers matchers) Added with 1.21.5void
setNbt
(@Nullable NBTCompound nbt) void
setProperties
(@Nullable List<ItemAdventurePredicate.PropertyMatcher> properties) static void
write
(PacketWrapper<?> wrapper, ItemAdventurePredicate.BlockPredicate predicate)
-
Constructor Details
-
BlockPredicate
public BlockPredicate(@Nullable @Nullable MappedEntitySet<StateType.Mapped> blocks, @Nullable @Nullable List<ItemAdventurePredicate.PropertyMatcher> properties, @Nullable @Nullable NBTCompound nbt) -
BlockPredicate
public BlockPredicate(@Nullable @Nullable MappedEntitySet<StateType.Mapped> blocks, @Nullable @Nullable List<ItemAdventurePredicate.PropertyMatcher> properties, @Nullable @Nullable NBTCompound nbt, ComponentMatchers matchers)
-
-
Method Details
-
read
-
write
-
getBlocks
-
setBlocks
-
addProperty
-
getProperties
-
setProperties
public void setProperties(@Nullable @Nullable List<ItemAdventurePredicate.PropertyMatcher> properties) -
getNbt
-
setNbt
-
getMatchers
Added with 1.21.5 -
setMatchers
Added with 1.21.5 -
equals
-
hashCode
public int hashCode()
-