public CodexShredder(UUID ownerId) {
super(ownerId, 228, "Codex Shredder", Rarity.UNCOMMON, new CardType[]{CardType.ARTIFACT}, "{1}");
this.expansionSetCode = "RTR";
// {T}: Target player puts the top card of his or her library into his or her graveyard.
SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutLibraryIntoGraveTargetEffect(1), new TapSourceCost());
ability.addTarget(new TargetPlayer());
this.addAbility(ability);
// {5}, {T}, Sacrifice Codex Shredder: Return target card from your graveyard to your hand.
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandTargetEffect(), new ManaCostsImpl("{5}"));