Record Class StructurePlacement.ExclusionZone
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.structure.placement.StructurePlacement.ExclusionZone
- Enclosing class:
StructurePlacement
@Deprecated
public static record StructurePlacement.ExclusionZone(Holder<StructureSet> otherSet, int chunkCount)
extends Record
Deprecated.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intDeprecated.The field for thechunkCountrecord component.static final com.mojang.serialization.Codec<StructurePlacement.ExclusionZone> Deprecated.private final Holder<StructureSet> Deprecated.The field for theotherSetrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionExclusionZone(Holder<StructureSet> otherSet, int chunkCount) Deprecated.Creates an instance of aExclusionZonerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.Returns the value of thechunkCountrecord component.final booleanDeprecated.Indicates whether some other object is "equal to" this one.final inthashCode()Deprecated.Returns a hash code value for this object.private booleanisPlacementForbidden(ChunkGeneratorStructureState state, int sourceX, int sourceZ) Deprecated.otherSet()Deprecated.Returns the value of theotherSetrecord component.final StringtoString()Deprecated.Returns a string representation of this record class.
-
Field Details
-
otherSet
Deprecated.The field for theotherSetrecord component. -
chunkCount
private final int chunkCountDeprecated.The field for thechunkCountrecord component. -
CODEC
Deprecated.
-
-
Constructor Details
-
ExclusionZone
Deprecated.Creates an instance of aExclusionZonerecord class.- Parameters:
otherSet- the value for theotherSetrecord componentchunkCount- the value for thechunkCountrecord component
-
-
Method Details
-
isPlacementForbidden
Deprecated. -
toString
-
hashCode
-
equals
Deprecated.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. -
otherSet
Deprecated.Returns the value of theotherSetrecord component.- Returns:
- the value of the
otherSetrecord component
-
chunkCount
public int chunkCount()Deprecated.Returns the value of thechunkCountrecord component.- Returns:
- the value of the
chunkCountrecord component
-