No longer shows the RF bar on our machines
This commit is contained in:
parent
eaae9a380d
commit
0bbc088524
2 changed files with 31 additions and 0 deletions
|
@ -24,6 +24,7 @@ public class CompactTheOneProbe implements ICompatModule {
|
|||
@Override
|
||||
public void postInit(FMLPostInitializationEvent event) {
|
||||
TheOneProbe.theOneProbeImp.registerProvider(new ProbeProvider());
|
||||
TheOneProbe.theOneProbeImp.registerProbeConfigProvider(new ProbeConfig());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
30
src/main/java/techreborn/compat/theoneprobe/ProbeConfig.java
Normal file
30
src/main/java/techreborn/compat/theoneprobe/ProbeConfig.java
Normal file
|
@ -0,0 +1,30 @@
|
|||
package techreborn.compat.theoneprobe;
|
||||
|
||||
import mcjty.theoneprobe.api.IProbeConfig;
|
||||
import mcjty.theoneprobe.api.IProbeConfigProvider;
|
||||
import mcjty.theoneprobe.api.IProbeHitData;
|
||||
import mcjty.theoneprobe.api.IProbeHitEntityData;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
import reborncore.common.powerSystem.TilePowerAcceptor;
|
||||
|
||||
/**
|
||||
* Created by Mark on 04/06/2016.
|
||||
*/
|
||||
public class ProbeConfig implements IProbeConfigProvider {
|
||||
@Override
|
||||
public void getProbeConfig(IProbeConfig config, EntityPlayer player, World world, Entity entity, IProbeHitEntityData data) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getProbeConfig(IProbeConfig config, EntityPlayer player, World world, IBlockState blockState, IProbeHitData data) {
|
||||
TileEntity tile = world.getTileEntity(data.getPos());
|
||||
if(tile instanceof TilePowerAcceptor){
|
||||
config.setRFMode(0);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue