Record Class TBSpawnPlacements.Data
java.lang.Object
java.lang.Record
com.blamejared.the_breach.world.entity.TBSpawnPlacements.Data
- Enclosing class:
TBSpawnPlacements
public static record TBSpawnPlacements.Data(net.minecraft.world.level.levelgen.Heightmap.Types heightMap, net.minecraft.world.entity.SpawnPlacementType placement, net.minecraft.world.entity.SpawnPlacements.SpawnPredicate<?> predicate)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionData(net.minecraft.world.level.levelgen.Heightmap.Types heightMap, net.minecraft.world.entity.SpawnPlacementType placement, net.minecraft.world.entity.SpawnPlacements.SpawnPredicate<?> predicate) Creates an instance of aDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.world.level.levelgen.Heightmap.TypesReturns the value of theheightMaprecord component.net.minecraft.world.entity.SpawnPlacementTypeReturns the value of theplacementrecord component.net.minecraft.world.entity.SpawnPlacements.SpawnPredicate<?> Returns the value of thepredicaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Data
public Data(net.minecraft.world.level.levelgen.Heightmap.Types heightMap, net.minecraft.world.entity.SpawnPlacementType placement, net.minecraft.world.entity.SpawnPlacements.SpawnPredicate<?> predicate) Creates an instance of aDatarecord class.- Parameters:
heightMap- the value for theheightMaprecord componentplacement- the value for theplacementrecord componentpredicate- the value for thepredicaterecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
heightMap
public net.minecraft.world.level.levelgen.Heightmap.Types heightMap()Returns the value of theheightMaprecord component.- Returns:
- the value of the
heightMaprecord component
-
placement
public net.minecraft.world.entity.SpawnPlacementType placement()Returns the value of theplacementrecord component.- Returns:
- the value of the
placementrecord component
-
predicate
public net.minecraft.world.entity.SpawnPlacements.SpawnPredicate<?> predicate()Returns the value of thepredicaterecord component.- Returns:
- the value of the
predicaterecord component
-