package tschipp.carryon.common.scripting; import net.minecraft.nbt.NBTTagCompound; public class CarryOnOverride { // BLOCKS private NBTTagCompound typeBlockTag; private String typeMeta; private String typeNameBlock; private String typeMaterial; private String typeHardness; private String typeResistance; // ENTITIES private NBTTagCompound typeEntityTag; private String typeNameEntity; private String typeHeight; private String typeWidth; private String typeHealth; // CONDITIONS private String conditionGamestage; private String conditionAchievement; private String conditionXp; private String conditionGamemode; private String conditionScoreboard; private String conditionPosition; // RENDER private String renderNameBlock; private String renderNameEntity; private int renderMeta; private NBTTagCompound renderNBT; private String renderTranslation; private String renderRotation; private String renderScale; private String renderRotationLeftArm; private String renderRotationRightArm; private boolean isBlock; private boolean isEntity; public String getRenderRotationLeftArm() { return renderRotationLeftArm; } public void setRenderRotationLeftArm(String renderRotationLeftArm) { this.renderRotationLeftArm = renderRotationLeftArm; } public String getRenderRotationRightArm() { return renderRotationRightArm; } public void setRenderRotationRightArm(String renderRotationRightArm) { this.renderRotationRightArm = renderRotationRightArm; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((conditionAchievement == null) ? 0 : conditionAchievement.hashCode()); result = prime * result + ((conditionGamemode == null) ? 0 : conditionGamemode.hashCode()); result = prime * result + ((conditionGamestage == null) ? 0 : conditionGamestage.hashCode()); result = prime * result + ((conditionPosition == null) ? 0 : conditionPosition.hashCode()); result = prime * result + ((conditionScoreboard == null) ? 0 : conditionScoreboard.hashCode()); result = prime * result + ((conditionXp == null) ? 0 : conditionXp.hashCode()); result = prime * result + (isBlock ? 1231 : 1237); result = prime * result + (isEntity ? 1231 : 1237); result = prime * result + renderMeta; result = prime * result + ((renderNBT == null) ? 0 : renderNBT.hashCode()); result = prime * result + ((renderNameBlock == null) ? 0 : renderNameBlock.hashCode()); result = prime * result + ((renderNameEntity == null) ? 0 : renderNameEntity.hashCode()); result = prime * result + ((renderRotation == null) ? 0 : renderRotation.hashCode()); result = prime * result + ((renderRotationLeftArm == null) ? 0 : renderRotationLeftArm.hashCode()); result = prime * result + ((renderRotationRightArm == null) ? 0 : renderRotationRightArm.hashCode()); result = prime * result + ((renderScale == null) ? 0 : renderScale.hashCode()); result = prime * result + ((renderTranslation == null) ? 0 : renderTranslation.hashCode()); result = prime * result + ((typeBlockTag == null) ? 0 : typeBlockTag.hashCode()); result = prime * result + ((typeEntityTag == null) ? 0 : typeEntityTag.hashCode()); result = prime * result + ((typeHardness == null) ? 0 : typeHardness.hashCode()); result = prime * result + ((typeHealth == null) ? 0 : typeHealth.hashCode()); result = prime * result + ((typeHeight == null) ? 0 : typeHeight.hashCode()); result = prime * result + ((typeMaterial == null) ? 0 : typeMaterial.hashCode()); result = prime * result + ((typeMeta == null) ? 0 : typeMeta.hashCode()); result = prime * result + ((typeNameBlock == null) ? 0 : typeNameBlock.hashCode()); result = prime * result + ((typeNameEntity == null) ? 0 : typeNameEntity.hashCode()); result = prime * result + ((typeResistance == null) ? 0 : typeResistance.hashCode()); result = prime * result + ((typeWidth == null) ? 0 : typeWidth.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; CarryOnOverride other = (CarryOnOverride) obj; if (conditionAchievement == null) { if (other.conditionAchievement != null) return false; } else if (!conditionAchievement.equals(other.conditionAchievement)) return false; if (conditionGamemode == null) { if (other.conditionGamemode != null) return false; } else if (!conditionGamemode.equals(other.conditionGamemode)) return false; if (conditionGamestage == null) { if (other.conditionGamestage != null) return false; } else if (!conditionGamestage.equals(other.conditionGamestage)) return false; if (conditionPosition == null) { if (other.conditionPosition != null) return false; } else if (!conditionPosition.equals(other.conditionPosition)) return false; if (conditionScoreboard == null) { if (other.conditionScoreboard != null) return false; } else if (!conditionScoreboard.equals(other.conditionScoreboard)) return false; if (conditionXp == null) { if (other.conditionXp != null) return false; } else if (!conditionXp.equals(other.conditionXp)) return false; if (isBlock != other.isBlock) return false; if (isEntity != other.isEntity) return false; if (renderMeta != other.renderMeta) return false; if (renderNBT == null) { if (other.renderNBT != null) return false; } else if (!renderNBT.equals(other.renderNBT)) return false; if (renderNameBlock == null) { if (other.renderNameBlock != null) return false; } else if (!renderNameBlock.equals(other.renderNameBlock)) return false; if (renderNameEntity == null) { if (other.renderNameEntity != null) return false; } else if (!renderNameEntity.equals(other.renderNameEntity)) return false; if (renderRotation == null) { if (other.renderRotation != null) return false; } else if (!renderRotation.equals(other.renderRotation)) return false; if (renderRotationLeftArm == null) { if (other.renderRotationLeftArm != null) return false; } else if (!renderRotationLeftArm.equals(other.renderRotationLeftArm)) return false; if (renderRotationRightArm == null) { if (other.renderRotationRightArm != null) return false; } else if (!renderRotationRightArm.equals(other.renderRotationRightArm)) return false; if (renderScale == null) { if (other.renderScale != null) return false; } else if (!renderScale.equals(other.renderScale)) return false; if (renderTranslation == null) { if (other.renderTranslation != null) return false; } else if (!renderTranslation.equals(other.renderTranslation)) return false; if (typeBlockTag == null) { if (other.typeBlockTag != null) return false; } else if (!typeBlockTag.equals(other.typeBlockTag)) return false; if (typeEntityTag == null) { if (other.typeEntityTag != null) return false; } else if (!typeEntityTag.equals(other.typeEntityTag)) return false; if (typeHardness == null) { if (other.typeHardness != null) return false; } else if (!typeHardness.equals(other.typeHardness)) return false; if (typeHealth == null) { if (other.typeHealth != null) return false; } else if (!typeHealth.equals(other.typeHealth)) return false; if (typeHeight == null) { if (other.typeHeight != null) return false; } else if (!typeHeight.equals(other.typeHeight)) return false; if (typeMaterial == null) { if (other.typeMaterial != null) return false; } else if (!typeMaterial.equals(other.typeMaterial)) return false; if (typeMeta == null) { if (other.typeMeta != null) return false; } else if (!typeMeta.equals(other.typeMeta)) return false; if (typeNameBlock == null) { if (other.typeNameBlock != null) return false; } else if (!typeNameBlock.equals(other.typeNameBlock)) return false; if (typeNameEntity == null) { if (other.typeNameEntity != null) return false; } else if (!typeNameEntity.equals(other.typeNameEntity)) return false; if (typeResistance == null) { if (other.typeResistance != null) return false; } else if (!typeResistance.equals(other.typeResistance)) return false; if (typeWidth == null) { if (other.typeWidth != null) return false; } else if (!typeWidth.equals(other.typeWidth)) return false; return true; } public boolean isBlock() { return isBlock; } public void setBlock(boolean isBlock) { this.isBlock = isBlock; } public boolean isEntity() { return isEntity; } public void setEntity(boolean isEntity) { this.isEntity = isEntity; } public NBTTagCompound getTypeBlockTag() { return typeBlockTag; } public String getTypeMeta() { return typeMeta; } public String getTypeNameBlock() { return typeNameBlock; } public String getTypeMaterial() { return typeMaterial; } public String getTypeHardness() { return typeHardness; } public String getTypeResistance() { return typeResistance; } public NBTTagCompound getTypeEntityTag() { return typeEntityTag; } public String getTypeNameEntity() { return typeNameEntity; } public String getTypeHeight() { return typeHeight; } public String getTypeWidth() { return typeWidth; } public String getTypeHealth() { return typeHealth; } public String getConditionGamestage() { return conditionGamestage; } public String getConditionAchievement() { return conditionAchievement; } public String getConditionXp() { return conditionXp; } public String getConditionGamemode() { return conditionGamemode; } public String getConditionScoreboard() { return conditionScoreboard; } public String getConditionPosition() { return conditionPosition; } public String getRenderNameBlock() { return renderNameBlock; } public String getRenderNameEntity() { return renderNameEntity; } public int getRenderMeta() { return renderMeta; } public NBTTagCompound getRenderNBT() { return renderNBT; } public String getRenderTranslation() { return renderTranslation; } public String getRenderRotation() { return renderRotation; } public String getRenderScale() { return renderScale; } public void setTypeBlockTag(NBTTagCompound typeBlockTag) { this.typeBlockTag = typeBlockTag; } public void setTypeMeta(String typeMeta) { this.typeMeta = typeMeta; } public void setTypeNameBlock(String typeNameBlock) { this.typeNameBlock = typeNameBlock; } public void setTypeMaterial(String typeMaterial) { this.typeMaterial = typeMaterial; } public void setTypeHardness(String typeHardness) { this.typeHardness = typeHardness; } public void setTypeResistance(String typeResistance) { this.typeResistance = typeResistance; } public void setTypeEntityTag(NBTTagCompound typeEntityTag) { this.typeEntityTag = typeEntityTag; } public void setTypeNameEntity(String typeNameEntity) { this.typeNameEntity = typeNameEntity; } public void setTypeHeight(String typeHeight) { this.typeHeight = typeHeight; } public void setTypeWidth(String typeWidth) { this.typeWidth = typeWidth; } public void setTypeHealth(String typeHealth) { this.typeHealth = typeHealth; } public void setConditionGamestage(String conditionGamestage) { this.conditionGamestage = conditionGamestage; } public void setConditionAchievement(String conditionAchievement) { this.conditionAchievement = conditionAchievement; } public void setConditionXp(String conditionXp) { this.conditionXp = conditionXp; } public void setConditionGamemode(String conditionGamemode) { this.conditionGamemode = conditionGamemode; } public void setConditionScoreboard(String conditionScoreboard) { this.conditionScoreboard = conditionScoreboard; } public void setConditionPosition(String conditionPosition) { this.conditionPosition = conditionPosition; } public void setRenderNameBlock(String renderNameBlock) { this.renderNameBlock = renderNameBlock; } public void setRenderNameEntity(String renderNameEntity) { this.renderNameEntity = renderNameEntity; } public void setRenderMeta(int renderMeta) { this.renderMeta = renderMeta; } public void setRenderNBT(NBTTagCompound renderNBT) { this.renderNBT = renderNBT; } public void setRenderTranslation(String renderTranslation) { this.renderTranslation = renderTranslation; } public void setRenderRotation(String renderRotation) { this.renderRotation = renderRotation; } public void setRenderScale(String renderScale) { this.renderScale = renderScale; } }