Class EntityMoveAction

    • Constructor Detail

      • EntityMoveAction

        public EntityMoveAction​(long tickNumber,
                                Entity entity,
                                Position from,
                                Position to)
        Create an entity move action.
        Parameters:
        tickNumber - the tick the action happened at
        entity - the entity that caused the action
        from - the position the entity was at before the move
        to - the position the entity is after the move
    • Method Detail

      • from

        public Position from()
        Returns:
        the position the entity was at before the move
      • to

        public Position to()
        Returns:
        the position the entity is after the move