mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-28 15:36:18 +00:00
Fix #1153 crash from interface methods named getWorld
This commit is contained in:
1 parent
0ae2e36e90
commit
5cc181d4c7
43 files changed
+92
-133
No files matched your search
@@ -44,7 +44,8 @@ public interface IBeeHousing extends IHousing, IErrorLogicSource {
|
||||
|
||||
boolean canBlockSeeTheSky();
|
||||
|
||||
World getWorld();
|
||||
/** Must not be named "getWorld" to avoid SpecialSource issue https://github.com/md-5/SpecialSource/issues/12 */
|
||||
World getWorldObj();
|
||||
|
||||
BiomeGenBase getBiome();
|
||||
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
* This work (the API) is licensed under the "MIT" License, see LICENSE.txt for details.
|
||||
******************************************************************************/
|
||||
package forestry.api.core;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public interface ICamouflageHandler{
|
||||
|
||||
@@ -29,10 +29,5 @@ public interface ICamouflageHandler{
|
||||
* @return The coordinates of the handler as a BlockPos.
|
||||
*/
|
||||
BlockPos getCoordinates();
|
||||
|
||||
/**
|
||||
* @return The world of the handler.
|
||||
*/
|
||||
World getWorld();
|
||||
|
||||
}
|
||||
@@ -6,14 +6,11 @@
|
||||
package forestry.api.core;
|
||||
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public interface ICamouflagedTile {
|
||||
|
||||
EnumCamouflageType getCamouflageType();
|
||||
|
||||
BlockPos getCoordinates();
|
||||
|
||||
World getWorld();
|
||||
|
||||
}
|
||||
@@ -21,7 +21,8 @@ public interface IFarmHousing extends IErrorLogicSource {
|
||||
|
||||
Vec3i getOffset();
|
||||
|
||||
World getWorld();
|
||||
/** Must not be named "getWorld" to avoid SpecialSource issue https://github.com/md-5/SpecialSource/issues/12 */
|
||||
World getWorldObj();
|
||||
|
||||
/**
|
||||
* @return true if any work was done, false otherwise.
|
||||
|
||||
@@ -5,10 +5,11 @@
|
||||
******************************************************************************/
|
||||
package forestry.api.greenhouse;
|
||||
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import forestry.api.core.EnumHumidity;
|
||||
import forestry.api.core.EnumTemperature;
|
||||
import forestry.api.core.IErrorLogicSource;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public interface IGreenhouseHousing extends IErrorLogicSource {
|
||||
|
||||
@@ -21,8 +22,9 @@ public interface IGreenhouseHousing extends IErrorLogicSource {
|
||||
float getExactHumidity();
|
||||
|
||||
/**
|
||||
* Must not be named "getWorld" to avoid SpecialSource issue https://github.com/md-5/SpecialSource/issues/12
|
||||
* @return The world in that the housing is.
|
||||
*/
|
||||
World getWorld();
|
||||
World getWorldObj();
|
||||
|
||||
}
|
||||
@@ -11,7 +11,6 @@ import java.util.List;
|
||||
import forestry.api.core.EnumHumidity;
|
||||
import forestry.api.core.EnumTemperature;
|
||||
import forestry.api.multiblock.IMultiblockComponent;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public interface IGreenhouseState {
|
||||
|
||||
@@ -26,10 +25,5 @@ public interface IGreenhouseState {
|
||||
List<IInternalBlock> getInternalBlocks();
|
||||
|
||||
Collection<IMultiblockComponent> getGreenhouseComponents();
|
||||
|
||||
/**
|
||||
* @return The world in that the greenhouse standing
|
||||
*/
|
||||
World getWorld();
|
||||
|
||||
}
|
||||
@@ -5,18 +5,14 @@
|
||||
******************************************************************************/
|
||||
package forestry.api.greenhouse;
|
||||
|
||||
import java.util.Collection;
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.Collection;
|
||||
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public interface IInternalBlock {
|
||||
|
||||
@Nonnull
|
||||
World getWorld();
|
||||
|
||||
@Nonnull
|
||||
BlockPos getPos();
|
||||
|
||||
|
||||
Reference in new issue
Block a user