Examples of IMovableHandler


Examples of appeng.api.movable.IMovableHandler

    {
      Column c = myColumns[x][z];

      if ( c.doNotSkip( y + y_offset ) || alternateDest == null )
      {
        IMovableHandler handler = getHandler( te );

        try
        {
          handler.moveTile( te, world, x + x_offset, y + y_offset, z + z_offset );
        }
        catch (Throwable e)
        {
          AELog.error( e );
View Full Code Here

Examples of appeng.api.movable.IMovableHandler

  private final IMovableHandler nullHandler = new DefaultSpatialHandler();

  private IMovableHandler testClass(Class myClass, TileEntity te)
  {
    IMovableHandler handler = null;

    // ask handlers...
    for (IMovableHandler han : handlers)
    {
      if ( han.canHandle( myClass, te ) )
View Full Code Here

Examples of appeng.api.movable.IMovableHandler

  @Override
  public boolean askToMove(TileEntity te)
  {
    Class myClass = te.getClass();
    IMovableHandler canMove = Valid.get( myClass );

    if ( canMove == null )
      canMove = testClass( myClass, te );

    if ( canMove != nullHandler )
View Full Code Here

Examples of appeng.api.movable.IMovableHandler

  @Override
  public IMovableHandler getHandler(TileEntity te)
  {
    Class myClass = te.getClass();
    IMovableHandler h = Valid.get( myClass );
    return h == null ? dsh : h;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.