Class PlaceBlockConstructorStrategy
java.lang.Object
com.refinedmods.refinedstorage.common.constructordestructor.PlaceBlockConstructorStrategy
- All Implemented Interfaces:
ConstructorStrategy
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.refinedmods.refinedstorage.common.api.constructordestructor.ConstructorStrategy
ConstructorStrategy.Result
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPlaceBlockConstructorStrategy
(net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction) -
Method Summary
Modifier and TypeMethodDescriptionapply
(ResourceKey resource, Actor actor, net.minecraft.world.entity.player.Player player, Network network) protected boolean
apply
(net.minecraft.world.item.ItemStack itemStack, Actor actor, net.minecraft.world.entity.player.Player actingPlayer) protected double
protected double
protected double
protected long
protected boolean
hasWork()
-
Field Details
-
level
protected final net.minecraft.server.level.ServerLevel level -
pos
protected final net.minecraft.core.BlockPos pos -
direction
protected final net.minecraft.core.Direction direction
-
-
Constructor Details
-
PlaceBlockConstructorStrategy
public PlaceBlockConstructorStrategy(net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction)
-
-
Method Details
-
apply
protected boolean apply(net.minecraft.world.item.ItemStack itemStack, Actor actor, net.minecraft.world.entity.player.Player actingPlayer) -
hasWork
protected boolean hasWork() -
getTransferAmount
protected long getTransferAmount() -
apply
public final ConstructorStrategy.Result apply(ResourceKey resource, Actor actor, net.minecraft.world.entity.player.Player player, Network network) - Specified by:
apply
in interfaceConstructorStrategy
-
getDispensePositionX
protected double getDispensePositionX() -
getDispensePositionY
protected double getDispensePositionY() -
getDispensePositionZ
protected double getDispensePositionZ()
-