Record Class BlockPredicates
java.lang.Object
java.lang.Record
net.minestom.server.item.component.BlockPredicates
public record BlockPredicates(@NotNull List<BlockPredicate> predicates)
extends Record
implements Predicate<Block>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec
<BlockPredicates> static final NetworkBuffer.Type
<BlockPredicates> static final BlockPredicates
Will never match any block. -
Constructor Summary
ConstructorsConstructorDescriptionBlockPredicates
(@NotNull List<BlockPredicate> predicates) Creates an instance of aBlockPredicates
record class.BlockPredicates
(@NotNull BlockPredicate predicate) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull List
<BlockPredicate> Returns the value of thepredicates
record component.boolean
final String
toString()
Returns a string representation of this record class.
-
Field Details
-
NEVER
Will never match any block. -
NETWORK_TYPE
-
CODEC
-
-
Constructor Details
-
BlockPredicates
Creates an instance of aBlockPredicates
record class.- Parameters:
predicates
- the value for thepredicates
record component
-
BlockPredicates
-
-
Method Details
-
test
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
predicates
Returns the value of thepredicates
record component.- Returns:
- the value of the
predicates
record component
-