Package vazkii.botania.common.entity
Record Class ManaBurstEntity.PositionProperties
java.lang.Object
java.lang.Record
vazkii.botania.common.entity.ManaBurstEntity.PositionProperties
- Enclosing class:
ManaBurstEntity
public static record ManaBurstEntity.PositionProperties(net.minecraft.core.BlockPos coords, net.minecraft.world.level.block.state.BlockState state)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPositionProperties(net.minecraft.core.BlockPos coords, net.minecraft.world.level.block.state.BlockState state) Creates an instance of aPositionPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancontentsEqual(net.minecraft.world.level.Level world) net.minecraft.core.BlockPoscoords()Returns the value of thecoordsrecord component.booleanfinal booleanIndicates whether some other object is "equal to" this one.fromEntity(net.minecraft.world.entity.Entity entity) final inthashCode()Returns a hash code value for this object.booleanisInvalidIn(net.minecraft.world.level.Level level) net.minecraft.world.level.block.state.BlockStatestate()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PositionProperties
public PositionProperties(net.minecraft.core.BlockPos coords, net.minecraft.world.level.block.state.BlockState state) Creates an instance of aPositionPropertiesrecord class.- Parameters:
coords- the value for thecoordsrecord componentstate- the value for thestaterecord component
-
-
Method Details
-
fromEntity
public static ManaBurstEntity.PositionProperties fromEntity(net.minecraft.world.entity.Entity entity) -
coordsEqual
-
isInvalidIn
public boolean isInvalidIn(net.minecraft.world.level.Level level) -
contentsEqual
public boolean contentsEqual(net.minecraft.world.level.Level world) -
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 withObjects::equals(Object,Object). -
coords
public net.minecraft.core.BlockPos coords()Returns the value of thecoordsrecord component.- Returns:
- the value of the
coordsrecord component
-
state
public net.minecraft.world.level.block.state.BlockState state()Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-