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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionExclusionZone(Holder<StructureSet> otherSet, int chunkCount) Deprecated.Creates an instance of aExclusionZonerecord class.
- 
Method SummaryModifier 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.(package private) booleanisPlacementForbidden(ChunkGeneratorStructureState p_255745_, int p_255634_, int p_255892_) Deprecated.otherSet()Deprecated.Returns the value of theotherSetrecord component.final StringtoString()Deprecated.Returns a string representation of this record class.
- 
Field Details- 
otherSetDeprecated.The field for theotherSetrecord component.
- 
chunkCountprivate final int chunkCountDeprecated.The field for thechunkCountrecord component.
- 
CODECDeprecated.
 
- 
- 
Constructor Details- 
ExclusionZoneDeprecated.Creates an instance of aExclusionZonerecord class.- Parameters:
- otherSet- the value for the- otherSetrecord component
- chunkCount- the value for the- chunkCountrecord component
 
 
- 
- 
Method Details- 
isPlacementForbiddenDeprecated.
- 
toStringDeprecated.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.
- 
hashCodepublic final int hashCode()Deprecated.Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsDeprecated.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 '=='.
- 
otherSetDeprecated.Returns the value of theotherSetrecord component.- Returns:
- the value of the otherSetrecord component
 
- 
chunkCountpublic int chunkCount()Deprecated.Returns the value of thechunkCountrecord component.- Returns:
- the value of the chunkCountrecord component
 
 
-