mirror of
https://github.com/GTNewHorizons/ForgeRelocation.git
synced 2026-11-13 00:47:36 +00:00
27 lines
824 B
Java
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);
|
|
}
|