Browse Source

bear grumblin about overlays on his bushes

Gregorius Techneticies 2 months ago
parent
commit
268b255026
Signed by: Gregorius Techneticies <gregoriustech@gmail.com> GPG Key ID: 1B693EA14F2FD70F

+ 2
- 1
src/main/java/gregapi/tileentity/misc/MultiTileEntityTreeHole.java View File

@@ -1,5 +1,5 @@
1 1
 /**
2
- * Copyright (c) 2020 GregTech-6 Team
2
+ * Copyright (c) 2021 GregTech-6 Team
3 3
  *
4 4
  * This file is part of GregTech.
5 5
  *
@@ -126,6 +126,7 @@ public abstract class MultiTileEntityTreeHole extends TileEntityBase09FacingSing
126 126
 	@Override public boolean allowCovers(byte aSide) {return F;}
127 127
 	@Override public byte getDefaultSide() {return SIDE_BACK;}
128 128
 	@Override public boolean[] getValidSides() {return SIDES_HORIZONTAL;}
129
+	@Override public boolean isUsingWrenchingOverlay(ItemStack aStack, byte aSide) {return F;}
129 130
 	@Override public boolean showInCreative() {return F;}
130 131
 	@Override public boolean canDrop(int aInventorySlot) {return F;}
131 132
 }

+ 2
- 1
src/main/java/gregtech/tileentity/plants/MultiTileEntityBush.java View File

@@ -1,5 +1,5 @@
1 1
 /**
2
- * Copyright (c) 2019 Gregorius Techneticies
2
+ * Copyright (c) 2021 GregTech-6 Team
3 3
  *
4 4
  * This file is part of GregTech.
5 5
  *
@@ -344,6 +344,7 @@ public class MultiTileEntityBush extends TileEntityBase09FacingSingle implements
344 344
 	@Override public String getFacingTool() {return null;}
345 345
 	@Override public byte getDefaultSide() {return SIDE_UNDEFINED;}
346 346
 	@Override public boolean[] getValidSides() {return SIDES_ALL;}
347
+	@Override public boolean isUsingWrenchingOverlay(ItemStack aStack, byte aSide) {return F;}
347 348
 	@Override public float getExplosionResistance2() {return 0.2F;}
348 349
 	@Override public int getFireSpreadSpeed(byte aSide, boolean aDefault) {return 300;}
349 350
 	@Override public int getFlammability(byte aSide, boolean aDefault) {return 300;}

+ 2
- 2
src/main/java/gregtech/tileentity/tools/MultiTileEntityDynamite.java View File

@@ -1,5 +1,5 @@
1 1
 /**
2
- * Copyright (c) 2019 Gregorius Techneticies
2
+ * Copyright (c) 2021 GregTech-6 Team
3 3
  *
4 4
  * This file is part of GregTech.
5 5
  *
@@ -166,7 +166,7 @@ public class MultiTileEntityDynamite extends TileEntityBase09FacingSingle implem
166 166
 	
167 167
 	@Override public AxisAlignedBB getCollisionBoundingBoxFromPool() {return box(PX_P[SIDE_X_NEG==mFacing?mSunk?14:0:SIDE_X_POS==mFacing?0:5], PX_P[SIDE_Y_NEG==mFacing?mSunk?14:0:SIDE_Y_POS==mFacing?0:5], PX_P[SIDE_Z_NEG==mFacing?mSunk?14:0:SIDE_Z_POS==mFacing?0:5], PX_N[SIDE_X_POS==mFacing?mSunk?14:0:SIDE_X_NEG==mFacing?0:5], PX_N[SIDE_Y_POS==mFacing?mSunk?14:0:SIDE_Y_NEG==mFacing?0:5], PX_N[SIDE_Z_POS==mFacing?mSunk?14:0:SIDE_Z_NEG==mFacing?0:5]);}
168 168
 	@Override public AxisAlignedBB getSelectedBoundingBoxFromPool () {return box(PX_P[SIDE_X_NEG==mFacing?mSunk?14:0:SIDE_X_POS==mFacing?0:5], PX_P[SIDE_Y_NEG==mFacing?mSunk?14:0:SIDE_Y_POS==mFacing?0:5], PX_P[SIDE_Z_NEG==mFacing?mSunk?14:0:SIDE_Z_POS==mFacing?0:5], PX_N[SIDE_X_POS==mFacing?mSunk?14:0:SIDE_X_NEG==mFacing?0:5], PX_N[SIDE_Y_POS==mFacing?mSunk?14:0:SIDE_Y_NEG==mFacing?0:5], PX_N[SIDE_Z_POS==mFacing?mSunk?14:0:SIDE_Z_NEG==mFacing?0:5]);}
169
-	@Override public void setBlockBoundsBasedOnState(Block aBlock) {box(aBlock, PX_P[SIDE_X_NEG==mFacing?mSunk?14:0:SIDE_X_POS==mFacing?0:5], PX_P[SIDE_Y_NEG==mFacing?mSunk?14:0:SIDE_Y_POS==mFacing?0:5], PX_P[SIDE_Z_NEG==mFacing?mSunk?14:0:SIDE_Z_POS==mFacing?0:5], PX_N[SIDE_X_POS==mFacing?mSunk?14:0:SIDE_X_NEG==mFacing?0:5], PX_N[SIDE_Y_POS==mFacing?mSunk?14:0:SIDE_Y_NEG==mFacing?0:5], PX_N[SIDE_Z_POS==mFacing?mSunk?14:0:SIDE_Z_NEG==mFacing?0:5]);}
169
+	@Override public void setBlockBoundsBasedOnState(Block aBlock)  {box(aBlock, PX_P[SIDE_X_NEG==mFacing?mSunk?14:0:SIDE_X_POS==mFacing?0:5], PX_P[SIDE_Y_NEG==mFacing?mSunk?14:0:SIDE_Y_POS==mFacing?0:5], PX_P[SIDE_Z_NEG==mFacing?mSunk?14:0:SIDE_Z_POS==mFacing?0:5], PX_N[SIDE_X_POS==mFacing?mSunk?14:0:SIDE_X_NEG==mFacing?0:5], PX_N[SIDE_Y_POS==mFacing?mSunk?14:0:SIDE_Y_NEG==mFacing?0:5], PX_N[SIDE_Z_POS==mFacing?mSunk?14:0:SIDE_Z_NEG==mFacing?0:5]);}
170 170
 	
171 171
 	@Override public void onExploded(Explosion aExplosion) {mDontDrop = T; super.onExploded(aExplosion); explode();}
172 172
 	@Override public boolean remoteActivate() {if (mCountDown > 20 || mCountDown == 0) {mCountDown = 20; updateClientData();} return F;}

+ 2
- 1
src/main/java/gregtech/tileentity/tools/MultiTileEntityRope.java View File

@@ -1,5 +1,5 @@
1 1
 /**
2
- * Copyright (c) 2020 GregTech-6 Team
2
+ * Copyright (c) 2021 GregTech-6 Team
3 3
  *
4 4
  * This file is part of GregTech.
5 5
  *
@@ -182,6 +182,7 @@ public class MultiTileEntityRope extends TileEntityBase09FacingSingle implements
182 182
 	@Override public int getLightOpacity() {return LIGHT_OPACITY_NONE;}
183 183
 	@Override public byte getDefaultSide() {return SIDE_Y_NEG;}
184 184
 	@Override public boolean[] getValidSides() {return SIDES_VALID;}
185
+	@Override public boolean isUsingWrenchingOverlay(ItemStack aStack, byte aSide) {return F;}
185 186
 	@Override public boolean canDrop(int aInventorySlot) {return T;}
186 187
 	@Override public String getFacingTool() {return null;}
187 188
 	

+ 2
- 1
src/main/java/gregtech/tileentity/tools/MultiTileEntitySapBag.java View File

@@ -1,5 +1,5 @@
1 1
 /**
2
- * Copyright (c) 2020 GregTech-6 Team
2
+ * Copyright (c) 2021 GregTech-6 Team
3 3
  *
4 4
  * This file is part of GregTech.
5 5
  *
@@ -200,6 +200,7 @@ public class MultiTileEntitySapBag extends TileEntityBase09FacingSingle implemen
200 200
 	@Override public int getLightOpacity() {return LIGHT_OPACITY_NONE;}
201 201
 	@Override public byte getDefaultSide() {return SIDE_FRONT;}
202 202
 	@Override public boolean[] getValidSides() {return SIDES_HORIZONTAL;}
203
+	@Override public boolean isUsingWrenchingOverlay(ItemStack aStack, byte aSide) {return F;}
203 204
 	@Override public boolean canDrop(int aInventorySlot) {return T;}
204 205
 	@Override public byte getVisualData() {return (byte)(mFull ? 1 : 0);}
205 206
 	@Override public void setVisualData(byte aData) {mFull = (aData != 0);}

Loading…
Cancel
Save