ConstructionWand/src/main/java/thetadev/constructionwand/api/IWandAction.java
2021-08-02 23:48:18 +02:00

24 lines
897 B
Java

package thetadev.constructionwand.api;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.Level;
import net.minecraft.world.phys.BlockHitResult;
import thetadev.constructionwand.basics.option.WandOptions;
import thetadev.constructionwand.wand.undo.ISnapshot;
import javax.annotation.Nonnull;
import java.util.List;
public interface IWandAction
{
int getLimit(ItemStack wand);
@Nonnull
List<ISnapshot> getSnapshots(Level world, Player player, BlockHitResult rayTraceResult,
ItemStack wand, WandOptions options, IWandSupplier supplier, int limit);
@Nonnull
List<ISnapshot> getSnapshotsFromAir(Level world, Player player, BlockHitResult rayTraceResult,
ItemStack wand, WandOptions options, IWandSupplier supplier, int limit);
}