Record Class EditTarget.Request
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.world.EditTarget.Request
- Enclosing interface:
EditTarget
public static record EditTarget.Request(net.minestom.server.entity.Player player, net.minestom.server.instance.Instance instance, BooleanSupplier current, boolean allowNbt, SetBlockMessage singleBlockMessage)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRequest(net.minestom.server.entity.Player player, net.minestom.server.instance.Instance instance, BooleanSupplier current, boolean allowNbt, SetBlockMessage singleBlockMessage) Creates an instance of aRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanallowNbt()Returns the value of theallowNbtrecord component.current()Returns the value of thecurrentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minestom.server.instance.Instanceinstance()Returns the value of theinstancerecord component.net.minestom.server.entity.Playerplayer()Returns the value of theplayerrecord component.voidReturns the value of thesingleBlockMessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Request
public Request(net.minestom.server.entity.Player player, net.minestom.server.instance.Instance instance, BooleanSupplier current, boolean allowNbt, SetBlockMessage singleBlockMessage) Creates an instance of aRequestrecord class.- Parameters:
player- the value for theplayerrecord componentinstance- the value for theinstancerecord componentcurrent- the value for thecurrentrecord componentallowNbt- the value for theallowNbtrecord componentsingleBlockMessage- the value for thesingleBlockMessagerecord component
-
-
Method Details
-
requireCurrent
public void requireCurrent() -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
player
public net.minestom.server.entity.Player player()Returns the value of theplayerrecord component.- Returns:
- the value of the
playerrecord component
-
instance
public net.minestom.server.instance.Instance instance()Returns the value of theinstancerecord component.- Returns:
- the value of the
instancerecord component
-
current
Returns the value of thecurrentrecord component.- Returns:
- the value of the
currentrecord component
-
allowNbt
public boolean allowNbt()Returns the value of theallowNbtrecord component.- Returns:
- the value of the
allowNbtrecord component
-
singleBlockMessage
Returns the value of thesingleBlockMessagerecord component.- Returns:
- the value of the
singleBlockMessagerecord component
-