Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.gmail.plasmavn.fusionitems.service;
- import org.bukkit.inventory.ItemStack;
- public class Fusion extends MaterialFusion {
- private ItemStack result;
- private int points;
- public Fusion(ItemStack itemone, ItemStack itemtwo, ItemStack result, int points) {
- super(itemone, itemtwo);
- this.result = result;
- this.points = points;
- }
- public ItemStack getResult() {
- return result;
- }
- public int getPoints() {
- return points;
- }
- @Override
- public String toString() {
- StringBuilder toString = new StringBuilder("Fusion{MaterialFusion{").append(getItemOne().toString() + " - " + getItemTwo().toString() + "}, " + result.toString() + ", " + points + "}");
- return toString.toString();
- }
- @Override
- public int hashCode() {
- int hash = 0;
- hash = hash + 24 * getItemOne().hashCode();
- hash = hash + 24 * getItemTwo().hashCode();
- hash = hash + 24 * result.hashCode();
- hash = hash + 8 * points;
- return hash;
- }
- }
Add Comment
Please, Sign In to add comment