Record Class ReactorDecorator
java.lang.Object
java.lang.Record
net.darkhax.retroreactors.common.data.reactor.ReactorDecorator
- Record Components:
radius- The radius to decorate.palette- The palette to pull blocks from.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReactorDecorator(int radius, String palette) Creates an instance of aReactorDecoratorrecord 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.palette()Returns the value of thepaletterecord component.voidplace(net.minecraft.server.level.ServerLevel level, net.minecraft.util.random.WeightedList<net.minecraft.world.level.block.state.BlockState> palette, net.minecraft.core.BlockPos centerPos) intradius()Returns the value of theradiusrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
ReactorDecorator
-
-
Method Details
-
place
public void place(net.minecraft.server.level.ServerLevel level, net.minecraft.util.random.WeightedList<net.minecraft.world.level.block.state.BlockState> palette, net.minecraft.core.BlockPos centerPos) -
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. -
radius
-
palette
-