Skip to content

Commit

Permalink
Improved Climatologist texture
Browse files Browse the repository at this point in the history
  • Loading branch information
Forstride committed Feb 11, 2024
1 parent 878574b commit 23fb37f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,12 @@
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.LightLayer;
import net.minecraft.world.level.block.BaseEntityBlock;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.DaylightDetectorBlock;
import net.minecraft.world.level.block.RenderShape;
import net.minecraft.world.level.block.entity.BlockEntity;
import net.minecraft.world.level.block.entity.BlockEntityTicker;
import net.minecraft.world.level.block.entity.BlockEntityType;
import net.minecraft.world.level.block.entity.DaylightDetectorBlockEntity;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.StateDefinition;
import net.minecraft.world.level.block.state.properties.BlockStateProperties;
Expand All @@ -32,7 +29,6 @@
import net.minecraft.world.phys.shapes.CollisionContext;
import net.minecraft.world.phys.shapes.VoxelShape;
import toughasnails.api.blockentity.TANBlockEntityTypes;
import toughasnails.api.temperature.TemperatureHelper;
import toughasnails.api.temperature.TemperatureLevel;
import toughasnails.block.entity.TemperatureGaugeBlockEntity;
import toughasnails.temperature.TemperatureHelperImpl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
import net.minecraft.world.item.enchantment.EnchantmentHelper;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.biome.Biome;
import net.minecraft.world.level.block.CampfireBlock;
import net.minecraft.world.level.block.CopperBulbBlock;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.properties.BlockStateProperties;
import net.minecraft.world.level.block.state.properties.BooleanProperty;
import net.minecraft.world.level.levelgen.Heightmap;
import toughasnails.api.enchantment.TANEnchantments;
import toughasnails.api.player.ITANPlayer;
Expand Down Expand Up @@ -113,13 +113,13 @@ public int getTicksHyperthermic(Player player)
@Override
public boolean isHeating(BlockState state)
{
return state.is(ModTags.Blocks.HEATING_BLOCKS) && ((state.hasProperty(CampfireBlock.LIT) ? state.getValue(CampfireBlock.LIT) : (state.hasProperty(CopperBulbBlock.POWERED) ? state.getValue(CopperBulbBlock.POWERED) : true)));
return state.is(ModTags.Blocks.HEATING_BLOCKS) && ((state.hasProperty(BlockStateProperties.LIT) ? state.getValue(BlockStateProperties.LIT) : (state.hasProperty(BlockStateProperties.POWERED) ? state.getValue(BlockStateProperties.POWERED) : (state.hasProperty(BlockStateProperties.ENABLED) ? state.getValue(BlockStateProperties.ENABLED) : (state.hasProperty(BooleanProperty.create("active")) ? state.getValue(BooleanProperty.create("active")) : (state.hasProperty(BooleanProperty.create("on")) ? state.getValue(BooleanProperty.create("on")) : true))))));
}

@Override
public boolean isCooling(BlockState state)
{
return state.is(ModTags.Blocks.COOLING_BLOCKS) && ((state.hasProperty(CampfireBlock.LIT) ? state.getValue(CampfireBlock.LIT) : (state.hasProperty(CopperBulbBlock.POWERED) ? state.getValue(CopperBulbBlock.POWERED) : true)));
return state.is(ModTags.Blocks.COOLING_BLOCKS) && ((state.hasProperty(BlockStateProperties.LIT) ? state.getValue(BlockStateProperties.LIT) : (state.hasProperty(BlockStateProperties.POWERED) ? state.getValue(BlockStateProperties.POWERED) : (state.hasProperty(BlockStateProperties.ENABLED) ? state.getValue(BlockStateProperties.ENABLED) : (state.hasProperty(BooleanProperty.create("active")) ? state.getValue(BooleanProperty.create("active")) : (state.hasProperty(BooleanProperty.create("on")) ? state.getValue(BooleanProperty.create("on")) : true))))));
}

@Override
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 23fb37f

Please sign in to comment.