Record Class QueryEntities.Command
java.lang.Object
java.lang.Record
nl.pim16aap2.lightkeeper.protocol.QueryEntities.Command
- Record Components:
requestId- Correlation identifier matching the response'srequestId.worldName- Name of the world to query.entityTypeKey- Optional namespaced entity type key to filter by (e.g.minecraft:block_display).bounded- Whether the six bound coordinates constrain the query; whenfalsethey are ignored.minX- Minimum block X (inclusive) when bounded.minY- Minimum block Y (inclusive) when bounded.minZ- Minimum block Z (inclusive) when bounded.maxX- Maximum block X (inclusive) when bounded.maxY- Maximum block Y (inclusive) when bounded.maxZ- Maximum block Z (inclusive) when bounded.countOnly- Whentruethe response carries only the count, skipping the per-entity payloads — the cheap probe shape for retrying assertions.
- All Implemented Interfaces:
IAgentCommand<QueryEntities.Response>
- Enclosing class:
QueryEntities
public static record QueryEntities.Command(String requestId, String worldName, @Nullable String entityTypeKey, boolean bounded, int minX, int minY, int minZ, int maxX, int maxY, int maxZ, boolean countOnly)
extends Record
implements IAgentCommand<QueryEntities.Response>
Command record for
QUERY_ENTITIES.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbounded()Returns the value of theboundedrecord component.booleanReturns the value of thecountOnlyrecord component.@Nullable StringReturns the value of theentityTypeKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmaxX()Returns the value of themaxXrecord component.intmaxY()Returns the value of themaxYrecord component.intmaxZ()Returns the value of themaxZrecord component.intminX()Returns the value of theminXrecord component.intminY()Returns the value of theminYrecord component.intminZ()Returns the value of theminZrecord component.Returns the value of therequestIdrecord component.Returns the concrete response class for this command, used by the client to deserialize typed responses.final StringtoString()Returns a string representation of this record class.Returns the value of theworldNamerecord component.
-
Constructor Details
-
Method Details
-
responseType
Description copied from interface:IAgentCommandReturns the concrete response class for this command, used by the client to deserialize typed responses.- Specified by:
responseTypein interfaceIAgentCommand<QueryEntities.Response>- Returns:
- Non-null response class token.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
requestId
Returns the value of therequestIdrecord component.- Specified by:
requestIdin interfaceIAgentCommand<QueryEntities.Response>- Returns:
- the value of the
requestIdrecord component
-
worldName
Returns the value of theworldNamerecord component.- Returns:
- the value of the
worldNamerecord component
-
entityTypeKey
Returns the value of theentityTypeKeyrecord component.- Returns:
- the value of the
entityTypeKeyrecord component
-
bounded
public boolean bounded()Returns the value of theboundedrecord component.- Returns:
- the value of the
boundedrecord component
-
minX
public int minX()Returns the value of theminXrecord component.- Returns:
- the value of the
minXrecord component
-
minY
public int minY()Returns the value of theminYrecord component.- Returns:
- the value of the
minYrecord component
-
minZ
public int minZ()Returns the value of theminZrecord component.- Returns:
- the value of the
minZrecord component
-
maxX
public int maxX()Returns the value of themaxXrecord component.- Returns:
- the value of the
maxXrecord component
-
maxY
public int maxY()Returns the value of themaxYrecord component.- Returns:
- the value of the
maxYrecord component
-
maxZ
public int maxZ()Returns the value of themaxZrecord component.- Returns:
- the value of the
maxZrecord component
-
countOnly
public boolean countOnly()Returns the value of thecountOnlyrecord component.- Returns:
- the value of the
countOnlyrecord component
-