Tabnine Logo
PermanentToken.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
mage.game.permanent.PermanentToken
constructor

Best Java code snippets using mage.game.permanent.PermanentToken.<init> (Showing top 3 results out of 315)

origin: magefree/mage

@Override
public PermanentToken copy() {
  return new PermanentToken(this);
}
origin: magefree/mage

private void addToken(Token token, BigCard bigCard, UUID gameId, Rectangle rectangle) {
  if (cardDimension == null) {
    cardDimension = new Dimension(Config.dimensions.frameWidth, Config.dimensions.frameHeight);
  }
  PermanentToken newToken = new PermanentToken(token, null, token.getOriginalExpansionSetCode(), null);
  newToken.removeSummoningSickness();
  PermanentView theToken = new PermanentView(newToken, null, null, null);
  theToken.setInViewerOnly(true);
  final MageCard cardImg = Plugins.instance.getMagePermanent(theToken, bigCard, cardDimension, gameId, true);
  cardImg.setBounds(rectangle);
  jLayeredPane.add(cardImg, JLayeredPane.DEFAULT_LAYER, 10);
  cardImg.update(theToken);
  cardImg.setCardBounds(rectangle.x, rectangle.y, cardDimensions.frameWidth, cardDimensions.frameHeight);
}
origin: magefree/mage

PermanentToken newToken = new PermanentToken(this, event.getPlayerId(), setCode, game); // use event.getPlayerId() because it can be replaced by replacement effect
game.getState().addCard(newToken);
permanents.add(newToken);
mage.game.permanentPermanentToken<init>

Popular methods of PermanentToken

  • getToken
  • getExpansionSetCode
  • addAbility
  • copyFromToken
  • getId
  • getManaCost
  • getName
  • getRules
  • getTokenDescriptor
  • removeSummoningSickness
  • setTapped
  • setTapped

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • JCheckBox (javax.swing)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now