Class PlaceFireworksConstructorStrategy
java.lang.Object
com.refinedmods.refinedstorage.common.constructordestructor.PlaceFireworksConstructorStrategy
- 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
ConstructorsConstructorDescriptionPlaceFireworksConstructorStrategy(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 booleanapply(net.minecraft.world.item.ItemStack itemStack, Actor actor, net.minecraft.world.entity.player.Player actingPlayer) protected doubleprotected doubleprotected doubleprotected longprotected booleanhasWork()
-
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
-
PlaceFireworksConstructorStrategy
public PlaceFireworksConstructorStrategy(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:
applyin interfaceConstructorStrategy
-
getDispensePositionX
protected double getDispensePositionX() -
getDispensePositionY
protected double getDispensePositionY() -
getDispensePositionZ
protected double getDispensePositionZ()
-