mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +01:00
Fix things appearing on creative tabs they shouldn't appear on
This commit is contained in:
parent
e0b9099ca2
commit
7176dcbb2c
18 changed files with 55 additions and 1 deletions
|
@ -35,6 +35,9 @@ public class BlockBase extends Block{
|
||||||
if(this.shouldAddCreative()){
|
if(this.shouldAddCreative()){
|
||||||
this.setCreativeTab(CreativeTab.instance);
|
this.setCreativeTab(CreativeTab.instance);
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
this.setCreativeTab(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getBaseName(){
|
protected String getBaseName(){
|
||||||
|
|
|
@ -34,6 +34,9 @@ public class BlockBushBase extends BlockBush{
|
||||||
if(this.shouldAddCreative()){
|
if(this.shouldAddCreative()){
|
||||||
this.setCreativeTab(CreativeTab.instance);
|
this.setCreativeTab(CreativeTab.instance);
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
this.setCreativeTab(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getBaseName(){
|
protected String getBaseName(){
|
||||||
|
|
|
@ -51,6 +51,9 @@ public abstract class BlockContainerBase extends BlockContainer{
|
||||||
if(this.shouldAddCreative()){
|
if(this.shouldAddCreative()){
|
||||||
this.setCreativeTab(CreativeTab.instance);
|
this.setCreativeTab(CreativeTab.instance);
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
this.setCreativeTab(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getBaseName(){
|
protected String getBaseName(){
|
||||||
|
|
|
@ -49,6 +49,9 @@ public class BlockFluidFlowing extends BlockFluidClassic{
|
||||||
if(this.shouldAddCreative()){
|
if(this.shouldAddCreative()){
|
||||||
this.setCreativeTab(CreativeTab.instance);
|
this.setCreativeTab(CreativeTab.instance);
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
this.setCreativeTab(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getBaseName(){
|
protected String getBaseName(){
|
||||||
|
@ -60,7 +63,7 @@ public class BlockFluidFlowing extends BlockFluidClassic{
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean shouldAddCreative(){
|
public boolean shouldAddCreative(){
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -54,6 +54,9 @@ public class BlockPlant extends BlockCrops{
|
||||||
if(this.shouldAddCreative()){
|
if(this.shouldAddCreative()){
|
||||||
this.setCreativeTab(CreativeTab.instance);
|
this.setCreativeTab(CreativeTab.instance);
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
this.setCreativeTab(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getBaseName(){
|
protected String getBaseName(){
|
||||||
|
|
|
@ -41,6 +41,9 @@ public class BlockStair extends BlockStairs{
|
||||||
if(this.shouldAddCreative()){
|
if(this.shouldAddCreative()){
|
||||||
this.setCreativeTab(CreativeTab.instance);
|
this.setCreativeTab(CreativeTab.instance);
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
this.setCreativeTab(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getBaseName(){
|
protected String getBaseName(){
|
||||||
|
|
|
@ -50,6 +50,9 @@ public class BlockWallAA extends BlockWall{
|
||||||
if(this.shouldAddCreative()){
|
if(this.shouldAddCreative()){
|
||||||
this.setCreativeTab(CreativeTab.instance);
|
this.setCreativeTab(CreativeTab.instance);
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
this.setCreativeTab(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getBaseName(){
|
protected String getBaseName(){
|
||||||
|
|
|
@ -66,6 +66,9 @@ public class ItemAllToolAA extends ItemTool{
|
||||||
if(this.shouldAddCreative()){
|
if(this.shouldAddCreative()){
|
||||||
this.setCreativeTab(CreativeTab.instance);
|
this.setCreativeTab(CreativeTab.instance);
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
this.setCreativeTab(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getBaseName(){
|
protected String getBaseName(){
|
||||||
|
|
|
@ -48,6 +48,9 @@ public class ItemArmorAA extends ItemArmor{
|
||||||
if(this.shouldAddCreative()){
|
if(this.shouldAddCreative()){
|
||||||
this.setCreativeTab(CreativeTab.instance);
|
this.setCreativeTab(CreativeTab.instance);
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
this.setCreativeTab(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getBaseName(){
|
protected String getBaseName(){
|
||||||
|
|
|
@ -46,6 +46,9 @@ public class ItemAxeAA extends ItemAxe{
|
||||||
if(this.shouldAddCreative()){
|
if(this.shouldAddCreative()){
|
||||||
this.setCreativeTab(CreativeTab.instance);
|
this.setCreativeTab(CreativeTab.instance);
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
this.setCreativeTab(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getBaseName(){
|
protected String getBaseName(){
|
||||||
|
|
|
@ -32,6 +32,9 @@ public class ItemBase extends Item{
|
||||||
if(this.shouldAddCreative()){
|
if(this.shouldAddCreative()){
|
||||||
this.setCreativeTab(CreativeTab.instance);
|
this.setCreativeTab(CreativeTab.instance);
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
this.setCreativeTab(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getBaseName(){
|
protected String getBaseName(){
|
||||||
|
|
|
@ -41,6 +41,9 @@ public class ItemBucketAA extends ItemBucket{
|
||||||
if(this.shouldAddCreative()){
|
if(this.shouldAddCreative()){
|
||||||
this.setCreativeTab(CreativeTab.instance);
|
this.setCreativeTab(CreativeTab.instance);
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
this.setCreativeTab(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getBaseName(){
|
protected String getBaseName(){
|
||||||
|
|
|
@ -44,6 +44,9 @@ public abstract class ItemEnergy extends ItemEnergyContainer{
|
||||||
if(this.shouldAddCreative()){
|
if(this.shouldAddCreative()){
|
||||||
this.setCreativeTab(CreativeTab.instance);
|
this.setCreativeTab(CreativeTab.instance);
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
this.setCreativeTab(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getBaseName(){
|
protected String getBaseName(){
|
||||||
|
|
|
@ -33,6 +33,9 @@ public class ItemFoodBase extends ItemFood{
|
||||||
if(this.shouldAddCreative()){
|
if(this.shouldAddCreative()){
|
||||||
this.setCreativeTab(CreativeTab.instance);
|
this.setCreativeTab(CreativeTab.instance);
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
this.setCreativeTab(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getBaseName(){
|
protected String getBaseName(){
|
||||||
|
|
|
@ -47,6 +47,9 @@ public class ItemHoeAA extends ItemHoe{
|
||||||
if(this.shouldAddCreative()){
|
if(this.shouldAddCreative()){
|
||||||
this.setCreativeTab(CreativeTab.instance);
|
this.setCreativeTab(CreativeTab.instance);
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
this.setCreativeTab(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getBaseName(){
|
protected String getBaseName(){
|
||||||
|
|
|
@ -46,6 +46,9 @@ public class ItemPickaxeAA extends ItemPickaxe{
|
||||||
if(this.shouldAddCreative()){
|
if(this.shouldAddCreative()){
|
||||||
this.setCreativeTab(CreativeTab.instance);
|
this.setCreativeTab(CreativeTab.instance);
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
this.setCreativeTab(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getBaseName(){
|
protected String getBaseName(){
|
||||||
|
|
|
@ -47,6 +47,9 @@ public class ItemShovelAA extends ItemSpade{
|
||||||
if(this.shouldAddCreative()){
|
if(this.shouldAddCreative()){
|
||||||
this.setCreativeTab(CreativeTab.instance);
|
this.setCreativeTab(CreativeTab.instance);
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
this.setCreativeTab(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getBaseName(){
|
protected String getBaseName(){
|
||||||
|
|
|
@ -47,6 +47,9 @@ public class ItemSwordAA extends ItemSword{
|
||||||
if(this.shouldAddCreative()){
|
if(this.shouldAddCreative()){
|
||||||
this.setCreativeTab(CreativeTab.instance);
|
this.setCreativeTab(CreativeTab.instance);
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
this.setCreativeTab(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getBaseName(){
|
protected String getBaseName(){
|
||||||
|
|
Loading…
Reference in a new issue