Record Class EndGatewayFeature
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.EndGatewayFeature
- All Implemented Interfaces:
Feature
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<EndGatewayFeature> private final booleanThe field for theexactrecord component.The field for theexitrecord component.Fields inherited from interface Feature
DIRECT_CODEC, LIST_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionEndGatewayFeature(Optional<BlockPos> exit, boolean exact) Creates an instance of aEndGatewayFeaturerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<EndGatewayFeature> codec()static EndGatewayFeaturefinal booleanIndicates whether some other object is "equal to" this one.booleanexact()Returns the value of theexactrecord component.exit()Returns the value of theexitrecord component.final inthashCode()Returns a hash code value for this object.static EndGatewayFeaturebooleanplace(WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos origin) final StringtoString()Returns a string representation of this record class.Methods inherited from interface Feature
getSubFeatures, markAboveForPostProcessing, safeSetBlock, setBlock
-
Field Details
-
exit
-
exact
private final boolean exactThe field for theexactrecord component. -
CODEC
-
-
Constructor Details
-
EndGatewayFeature
-
-
Method Details
-
codec
-
knownExit
-
delayedExitSearch
-
place
public boolean place(WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos origin) -
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. -
exit
-
exact
public boolean exact()Returns the value of theexactrecord component.- Returns:
- the value of the
exactrecord component
-