Class PlaceFireworksConstructorStrategy
java.lang.Object
com.refinedmods.refinedstorage.common.constructordestructor.PlaceFireworksConstructorStrategy
- All Implemented Interfaces:
ConstructorStrategy
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPlaceFireworksConstructorStrategy
(net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
apply
(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
-
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) -
getTransferAmount
protected long getTransferAmount() -
apply
public final boolean 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()
-