mirror of
https://github.com/Theta-Dev/ConstructionWand.git
synced 2025-09-03 16:40:33 +02:00
24 lines
897 B
Java
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);
|
|
}
|