mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-19 03:49:13 +00:00
Update to latest unstable forestry
This commit is contained in:
1 parent
e9c91cda37
commit
8bf47d8f5f
4 files changed
+18
-11
No files matched your search
@@ -68,6 +68,11 @@ public class BackpackDefinition implements IBackpackDefinition
|
||||
@Override
|
||||
public boolean isValidItem(EntityPlayer player, ItemStack itemStack)
|
||||
{
|
||||
return isValidItem(itemStack);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isValidItem(ItemStack itemStack) {
|
||||
boolean flag = false;
|
||||
|
||||
ItemStack stack;
|
||||
|
||||
@@ -8,9 +8,10 @@ import net.minecraft.world.biome.BiomeGenBase;
|
||||
import forestry.api.apiculture.IBee;
|
||||
import forestry.api.apiculture.IBeeGenome;
|
||||
import forestry.api.apiculture.IBeeHousing;
|
||||
import forestry.api.core.EnumErrorCode;
|
||||
import forestry.api.core.EnumHumidity;
|
||||
import forestry.api.core.EnumTemperature;
|
||||
import forestry.api.core.ErrorStateRegistry;
|
||||
import forestry.api.core.IErrorState;
|
||||
import forestry.api.genetics.IIndividual;
|
||||
|
||||
/**
|
||||
@@ -200,20 +201,20 @@ public class EffectJarHousing implements IBeeHousing
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setErrorState(EnumErrorCode enumErrorCode)
|
||||
public void setErrorState(IErrorState enumErrorCode)
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getErrorOrdinal()
|
||||
{
|
||||
return getErrorState().ordinal();
|
||||
return getErrorState().getID();
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnumErrorCode getErrorState()
|
||||
public IErrorState getErrorState()
|
||||
{
|
||||
return EnumErrorCode.OK;
|
||||
return ErrorStateRegistry.getErrorState("ok");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -11,9 +11,10 @@ import net.minecraft.world.biome.BiomeGenBase;
|
||||
import forestry.api.apiculture.IBee;
|
||||
import forestry.api.apiculture.IBeeGenome;
|
||||
import forestry.api.apiculture.IBeeHousing;
|
||||
import forestry.api.core.EnumErrorCode;
|
||||
import forestry.api.core.EnumHumidity;
|
||||
import forestry.api.core.EnumTemperature;
|
||||
import forestry.api.core.ErrorStateRegistry;
|
||||
import forestry.api.core.IErrorState;
|
||||
import forestry.api.genetics.IIndividual;
|
||||
|
||||
public class TileEntityThaumicApiary extends TileEntity implements IInventory, IBeeHousing
|
||||
@@ -213,20 +214,20 @@ public class TileEntityThaumicApiary extends TileEntity implements IInventory, I
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setErrorState(EnumErrorCode enumErrorCode) {
|
||||
public void setErrorState(IErrorState enumErrorCode) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getErrorOrdinal()
|
||||
{
|
||||
return getErrorState().ordinal();
|
||||
return getErrorState().getID();
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnumErrorCode getErrorState()
|
||||
public IErrorState getErrorState()
|
||||
{
|
||||
return EnumErrorCode.UNKNOWN;
|
||||
return ErrorStateRegistry.getErrorState("unknown");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user