Skip to content

Commit

Permalink
Hide WAILA and remove collision of render blocks (GTNewHorizons#3436)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Robertz <[email protected]>
  • Loading branch information
serenibyss and Dream-Master authored Oct 31, 2024
1 parent 6ccfe28 commit 5091356
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;

import cpw.mods.fml.relauncher.Side;
Expand Down Expand Up @@ -59,4 +61,24 @@ public ArrayList<ItemStack> getDrops(World world, int x, int y, int z, int meta,
return new ArrayList<>();
}

@Override
public boolean isCollidable() {
return false;
}

@Override
public boolean getBlocksMovement(IBlockAccess worldIn, int x, int y, int z) {
return false;
}

@Override
public AxisAlignedBB getCollisionBoundingBoxFromPool(World worldIn, int x, int y, int z) {
return null;
}

@Override
@SideOnly(Side.CLIENT)
public AxisAlignedBB getSelectedBoundingBoxFromPool(World worldIn, int x, int y, int z) {
return null;
}
}
20 changes: 19 additions & 1 deletion src/main/java/gregtech/common/blocks/BlockBlackholeRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;

import cpw.mods.fml.common.registry.GameRegistry;
Expand Down Expand Up @@ -68,7 +70,23 @@ public ArrayList<ItemStack> getDrops(World world, int x, int y, int z, int meta,

@Override
public boolean isCollidable() {
return true;
return false;
}

@Override
public boolean getBlocksMovement(IBlockAccess worldIn, int x, int y, int z) {
return false;
}

@Override
public AxisAlignedBB getCollisionBoundingBoxFromPool(World worldIn, int x, int y, int z) {
return null;
}

@Override
@SideOnly(Side.CLIENT)
public AxisAlignedBB getSelectedBoundingBoxFromPool(World worldIn, int x, int y, int z) {
return null;
}

}
20 changes: 19 additions & 1 deletion src/main/java/gregtech/common/blocks/BlockWormholeRender.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;

import cpw.mods.fml.common.registry.GameRegistry;
Expand Down Expand Up @@ -69,7 +71,23 @@ public ArrayList<ItemStack> getDrops(World world, int x, int y, int z, int meta,

@Override
public boolean isCollidable() {
return true;
return false;
}

@Override
public boolean getBlocksMovement(IBlockAccess worldIn, int x, int y, int z) {
return false;
}

@Override
public AxisAlignedBB getCollisionBoundingBoxFromPool(World worldIn, int x, int y, int z) {
return null;
}

@Override
@SideOnly(Side.CLIENT)
public AxisAlignedBB getSelectedBoundingBoxFromPool(World worldIn, int x, int y, int z) {
return null;
}

}
17 changes: 17 additions & 0 deletions src/main/java/tectech/thing/block/BlockEOHRender.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;

import cpw.mods.fml.common.registry.GameRegistry;
Expand Down Expand Up @@ -75,4 +77,19 @@ public boolean isCollidable() {
return false;
}

@Override
public boolean getBlocksMovement(IBlockAccess worldIn, int x, int y, int z) {
return false;
}

@Override
public AxisAlignedBB getCollisionBoundingBoxFromPool(World worldIn, int x, int y, int z) {
return null;
}

@Override
@SideOnly(Side.CLIENT)
public AxisAlignedBB getSelectedBoundingBoxFromPool(World worldIn, int x, int y, int z) {
return null;
}
}
22 changes: 22 additions & 0 deletions src/main/java/tectech/thing/block/BlockForgeOfGods.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;

import cpw.mods.fml.common.registry.GameRegistry;
Expand Down Expand Up @@ -66,4 +68,24 @@ public ArrayList<ItemStack> getDrops(World world, int x, int y, int z, int meta,
return new ArrayList<>();
}

@Override
public boolean isCollidable() {
return false;
}

@Override
public boolean getBlocksMovement(IBlockAccess worldIn, int x, int y, int z) {
return false;
}

@Override
public AxisAlignedBB getCollisionBoundingBoxFromPool(World worldIn, int x, int y, int z) {
return null;
}

@Override
@SideOnly(Side.CLIENT)
public AxisAlignedBB getSelectedBoundingBoxFromPool(World worldIn, int x, int y, int z) {
return null;
}
}

0 comments on commit 5091356

Please sign in to comment.