Skip to content

Commit

Permalink
Move ISkinDownloadCallback, make grass paths a full block for now
Browse files Browse the repository at this point in the history
Remove unneeded leftover field for it being configurable.
  • Loading branch information
Roadhog360 committed Sep 6, 2023
1 parent 4024ee4 commit def65b8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package ganymedes01.etfuturum.client.skins.client;
package ganymedes01.etfuturum.api.client;

import com.mojang.authlib.minecraft.MinecraftProfileTexture.Type;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.resources.SkinManager.SkinAvailableCallback;
Expand Down
12 changes: 1 addition & 11 deletions src/main/java/ganymedes01/etfuturum/blocks/BlockGrassPath.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import ganymedes01.etfuturum.EtFuturum;
import ganymedes01.etfuturum.configuration.configs.ConfigWorld;
import ganymedes01.etfuturum.core.utils.Utils;
import net.minecraft.block.Block;
import net.minecraft.block.BlockFarmland;
Expand Down Expand Up @@ -43,16 +42,7 @@ public BlockGrassPath() {
*/
public AxisAlignedBB getCollisionBoundingBoxFromPool(World p_149668_1_, int p_149668_2_, int p_149668_3_, int p_149668_4_)
{
return AxisAlignedBB.getBoundingBox((double)p_149668_2_ + this.minX, (double)p_149668_3_ + this.minY, (double)p_149668_4_ + this.minZ, (double)p_149668_2_ + this.maxX, (double)p_149668_3_ + (ConfigWorld.fullGrassPath ? 1 : this.maxY), (double)p_149668_4_ + this.maxZ);
}

/**
* Returns the bounding box of the wired rectangular prism to render.
*/
@SideOnly(Side.CLIENT)
public AxisAlignedBB getSelectedBoundingBoxFromPool(World p_149633_1_, int p_149633_2_, int p_149633_3_, int p_149633_4_)
{
return getCollisionBoundingBoxFromPool(p_149633_1_, p_149633_2_, p_149633_3_, p_149633_4_);
return AxisAlignedBB.getBoundingBox((double) p_149668_2_ + this.minX, (double) p_149668_3_ + this.minY, (double) p_149668_4_ + this.minZ, (double) p_149668_2_ + this.maxX, (double) p_149668_3_ + 1, (double) p_149668_4_ + this.maxZ);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
package ganymedes01.etfuturum.client.skins;

import java.awt.image.BufferedImage;
import java.io.File;

import com.mojang.authlib.minecraft.MinecraftProfileTexture;
import com.mojang.authlib.minecraft.MinecraftProfileTexture.Type;
import com.mojang.authlib.minecraft.MinecraftSessionService;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import ganymedes01.etfuturum.client.skins.client.ISkinDownloadCallback;
import ganymedes01.etfuturum.api.client.ISkinDownloadCallback;
import ganymedes01.etfuturum.lib.Reference;
import net.minecraft.client.renderer.IImageBuffer;
import net.minecraft.client.renderer.texture.ITextureObject;
import net.minecraft.client.renderer.texture.TextureManager;
import net.minecraft.client.resources.SkinManager;
import net.minecraft.util.ResourceLocation;

import java.awt.image.BufferedImage;
import java.io.File;

/**
* Stolen from 1.8 and modified to work with 1.7.10
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public class ConfigWorld extends ConfigBase {
public static int maxNetherGoldPerCluster;
public static int maxMagmaPerCluster;
public static int maxCopperPerCluster;
public static boolean fullGrassPath;
public static int deepslateGenerationMode;
public static int maxDeepslatePerCluster;
public static int deepslateMaxY;
Expand Down

0 comments on commit def65b8

Please sign in to comment.