Files
ForgeRelocation/src/main/scala/mrtjp/mcframes/api/IFrameInteraction.java
T
2024-01-09 05:49:18 -06:00

27 lines
824 B
Java

/*
* Copyright (c) 2014. Created by MrTJP. All rights reserved.
*/
package mrtjp.mcframes.api;
import net.minecraft.world.World;
import mrtjp.relocation.api.RelocationAPI;
/**
* Class used instead of {@link IFrame} to add frame capabilities to a block without having the block or tile in that
* location implement the IFrame interface. This class must be registered in the {@link RelocationAPI}.
*/
public interface IFrameInteraction extends IFrame {
/**
* Check to see if this interaction can be executed at the given coordinates.
*
* @param w The world.
* @param x The x coordinate.
* @param y The y coordinate.
* @param z The z coordinate.
* @return True if this interaction is valid for the given location.
*/
boolean canInteract(World w, int x, int y, int z);
}