Record Class TallHarvestState
java.lang.Object
java.lang.Record
at.minecraftschurli.mods.arsmagicalegacy.api.plant.TallHarvestState
- Record Components:
lowerFrom- The old lowerBlockState.upperFrom- The old upperBlockState.lowerTo- The new lowerBlockState.upperTo- The new upperBlockState.
public record TallHarvestState(net.minecraft.world.level.block.state.BlockState lowerFrom, net.minecraft.world.level.block.state.BlockState upperFrom, net.minecraft.world.level.block.state.BlockState lowerTo, net.minecraft.world.level.block.state.BlockState upperTo)
extends Record
Represents the harvesting transition of a tall plant, used by some
GrowthTypes.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTallHarvestState(net.minecraft.world.level.block.state.BlockState lowerFrom, net.minecraft.world.level.block.state.BlockState upperFrom, net.minecraft.world.level.block.state.BlockState lowerTo, net.minecraft.world.level.block.state.BlockState upperTo) Creates an instance of aTallHarvestStaterecord 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.block.state.BlockStateReturns the value of thelowerFromrecord component.net.minecraft.world.level.block.state.BlockStatelowerTo()Returns the value of thelowerTorecord component.final StringtoString()Returns a string representation of this record class.net.minecraft.world.level.block.state.BlockStateReturns the value of theupperFromrecord component.net.minecraft.world.level.block.state.BlockStateupperTo()Returns the value of theupperTorecord component.
-
Field Details
-
CODEC
-
-
Constructor Details
-
TallHarvestState
public TallHarvestState(net.minecraft.world.level.block.state.BlockState lowerFrom, net.minecraft.world.level.block.state.BlockState upperFrom, net.minecraft.world.level.block.state.BlockState lowerTo, net.minecraft.world.level.block.state.BlockState upperTo) Creates an instance of aTallHarvestStaterecord class.
-
-
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). -
lowerFrom
-
upperFrom
-
lowerTo
-
upperTo
-