Package net.minecraft.world.border
Record Class WorldBorder.Properties
java.lang.Object
java.lang.Record
net.minecraft.world.border.WorldBorder.Properties
- Record Components:
centerX-centerZ-damagePerBlock-safeZone-warningBlocks-warningTime-size-lerpTime-lerpTarget-
- Enclosing class:
WorldBorder
public static record WorldBorder.Properties(double centerX, double centerZ, double damagePerBlock, double safeZone, int warningBlocks, int warningTime, double size, long lerpTime, double lerpTarget)
extends Record
- Mappings:
Namespace Name named net/minecraft/world/border/WorldBorder$Propertiesintermediary net/minecraft/class_2784$class_5200official elf$cnamed centerXintermediary comp_4774official cnamed centerZintermediary comp_4775official dnamed damagePerBlockintermediary comp_4776official enamed safeZoneintermediary comp_4777official fnamed warningBlocksintermediary comp_4778official gnamed warningTimeintermediary comp_4779official hnamed sizeintermediary comp_4780official inamed lerpTimeintermediary comp_4781official jnamed lerpTargetintermediary comp_4782official k
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleThe field for thecenterXrecord component.private final doubleThe field for thecenterZrecord component.static final com.mojang.serialization.Codec<WorldBorder.Properties> private final doubleThe field for thedamagePerBlockrecord component.static final WorldBorder.Propertiesprivate final doubleThe field for thelerpTargetrecord component.private final longThe field for thelerpTimerecord component.private final doubleThe field for thesafeZonerecord component.private final doubleThe field for thesizerecord component.private final intThe field for thewarningBlocksrecord component.private final intThe field for thewarningTimerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionProperties(double centerX, double centerZ, double damagePerBlock, double safeZone, int warningBlocks, int warningTime, double size, long sizeLerpTime, double sizeLerpTarget) Properties(WorldBorder worldBorder) -
Method Summary
Modifier and TypeMethodDescriptiondoublecenterX()Returns the value of thecenterXrecord component.doublecenterZ()Returns the value of thecenterZrecord component.doubleReturns the value of thedamagePerBlockrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thelerpTargetrecord component.longlerpTime()Returns the value of thelerpTimerecord component.doublesafeZone()Returns the value of thesafeZonerecord component.doublesize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thewarningBlocksrecord component.intReturns the value of thewarningTimerecord component.
-
Field Details
-
centerX
private final double centerXThe field for thecenterXrecord component. -
centerZ
private final double centerZThe field for thecenterZrecord component. -
damagePerBlock
private final double damagePerBlockThe field for thedamagePerBlockrecord component. -
safeZone
private final double safeZoneThe field for thesafeZonerecord component. -
warningBlocks
private final int warningBlocksThe field for thewarningBlocksrecord component. -
warningTime
private final int warningTimeThe field for thewarningTimerecord component. -
size
private final double sizeThe field for thesizerecord component. -
lerpTime
private final long lerpTimeThe field for thelerpTimerecord component. -
lerpTarget
private final double lerpTargetThe field for thelerpTargetrecord component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/world/border/WorldBorder$Properties;DEFAULT:Lnet/minecraft/world/border/WorldBorder$Properties;intermediary field_62538Lnet/minecraft/class_2784$class_5200;field_62538:Lnet/minecraft/class_2784$class_5200;official aLelf$c;a:Lelf$c;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/border/WorldBorder$Properties;CODEC:Lcom/mojang/serialization/Codec;intermediary field_62539Lnet/minecraft/class_2784$class_5200;field_62539:Lcom/mojang/serialization/Codec;official bLelf$c;b:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Properties
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/border/WorldBorder$Properties;<init>(Lnet/minecraft/world/border/WorldBorder;)Vintermediary <init>Lnet/minecraft/class_2784$class_5200;<init>(Lnet/minecraft/class_2784;)Vofficial <init>Lelf$c;<init>(Lelf;)V
-
Properties
public Properties(double centerX, double centerZ, double damagePerBlock, double safeZone, int warningBlocks, int warningTime, double size, long sizeLerpTime, double sizeLerpTarget) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/border/WorldBorder$Properties;<init>(DDDDIIDJD)Vintermediary <init>Lnet/minecraft/class_2784$class_5200;<init>(DDDDIIDJD)Vofficial <init>Lelf$c;<init>(DDDDIIDJD)V
-
-
Method Details
-
toWorldBorder
- Mappings:
Namespace Name Mixin selector named toWorldBorderLnet/minecraft/world/border/WorldBorder$Properties;toWorldBorder()Lnet/minecraft/world/border/WorldBorder;intermediary method_74149Lnet/minecraft/class_2784$class_5200;method_74149()Lnet/minecraft/class_2784;official aLelf$c;a()Lelf;
-
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. All components in this record class are compared with '=='. -
centerX
public double centerX()Returns the value of thecenterXrecord component.- Returns:
- the value of the
centerXrecord component
-
centerZ
public double centerZ()Returns the value of thecenterZrecord component.- Returns:
- the value of the
centerZrecord component
-
damagePerBlock
public double damagePerBlock()Returns the value of thedamagePerBlockrecord component.- Returns:
- the value of the
damagePerBlockrecord component
-
safeZone
public double safeZone()Returns the value of thesafeZonerecord component.- Returns:
- the value of the
safeZonerecord component
-
warningBlocks
public int warningBlocks()Returns the value of thewarningBlocksrecord component.- Returns:
- the value of the
warningBlocksrecord component
-
warningTime
public int warningTime()Returns the value of thewarningTimerecord component.- Returns:
- the value of the
warningTimerecord component
-
size
public double size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
lerpTime
public long lerpTime()Returns the value of thelerpTimerecord component.- Returns:
- the value of the
lerpTimerecord component
-
lerpTarget
public double lerpTarget()Returns the value of thelerpTargetrecord component.- Returns:
- the value of the
lerpTargetrecord component
-