Java Code Examples for appeng.api.config.Actionable#SIMULATE

The following examples show how to use appeng.api.config.Actionable#SIMULATE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MEMonitorHandler.java    From Framez with GNU General Public License v3.0 5 votes vote down vote up
@Override
public StackType injectItems(StackType input, Actionable mode, BaseActionSource src)
{
	if ( mode == Actionable.SIMULATE )
		return getHandler().injectItems( input, mode, src );
	return monitorDifference(input.copy(), getHandler().injectItems(input, mode, src), false, src);
}
 
Example 2
Source File: MEMonitorHandler.java    From Framez with GNU General Public License v3.0 5 votes vote down vote up
@Override
public StackType extractItems(StackType request, Actionable mode, BaseActionSource src)
{
	if ( mode == Actionable.SIMULATE )
		return getHandler().extractItems( request, mode, src );
	return monitorDifference(request.copy(), getHandler().extractItems(request, mode, src), true, src);
}
 
Example 3
Source File: MEMonitorHandler.java    From PneumaticCraft with GNU General Public License v3.0 5 votes vote down vote up
@Override
public StackType injectItems( StackType input, Actionable mode, BaseActionSource src )
{
	if( mode == Actionable.SIMULATE )
	{
		return this.getHandler().injectItems( input, mode, src );
	}
	return this.monitorDifference( input.copy(), this.getHandler().injectItems( input, mode, src ), false, src );
}
 
Example 4
Source File: MEMonitorHandler.java    From PneumaticCraft with GNU General Public License v3.0 5 votes vote down vote up
@Override
public StackType extractItems( StackType request, Actionable mode, BaseActionSource src )
{
	if( mode == Actionable.SIMULATE )
	{
		return this.getHandler().extractItems( request, mode, src );
	}
	return this.monitorDifference( request.copy(), this.getHandler().extractItems( request, mode, src ), true, src );
}