Skip to content

Commit

Permalink
Update mod to Forge 1.19-41.0.96
Browse files Browse the repository at this point in the history
  • Loading branch information
cech12 committed Jul 18, 2022
1 parent f4916a9 commit caa2ff9
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Forge Recommended Versioning](https://mcforge.readthedocs.io/en/latest/conventions/versioning/).

## [1.18.2-1.1.1.1] - 2022-07-??
## [1.19-1.2.0.0] - 2022-07-18
### Changed
- Update mod to Forge 1.19-41.0.63
- Update mod to Forge 1.19-41.0.96

## [1.18.2-1.1.1.1] - 2022-06-13
### Added
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ org.gradle.daemon=false
mod_id=solarcooker
mod_version=1.2.0.0
minecraft_version=1.19
forge_version=41.0.63
forge_version=41.0.96

# jei
jei_version=11.0.0.206
jei_version=11.0.0.211

#Curseforge
curseforge_id=436874
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package cech12.solarcooker.block;

import cech12.solarcooker.tileentity.AbstractSolarCookerBlockEntity;
import cech12.solarcooker.blockentity.AbstractSolarCookerBlockEntity;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.RenderShape;
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/cech12/solarcooker/block/SolarCookerBlock.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package cech12.solarcooker.block;

import cech12.solarcooker.init.ModBlockEntityTypes;
import cech12.solarcooker.tileentity.AbstractSolarCookerBlockEntity;
import cech12.solarcooker.tileentity.SolarCookerBlockEntity;
import cech12.solarcooker.blockentity.AbstractSolarCookerBlockEntity;
import cech12.solarcooker.blockentity.SolarCookerBlockEntity;
import net.minecraft.util.RandomSource;
import net.minecraft.world.level.block.entity.BlockEntityTicker;
import net.minecraft.world.level.block.entity.BlockEntityType;
import net.minecraft.world.level.block.state.BlockState;
Expand All @@ -19,7 +20,6 @@

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.Random;

import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraftforge.network.NetworkHooks;
Expand Down Expand Up @@ -50,16 +50,16 @@ public <T extends BlockEntity> BlockEntityTicker<T> getTicker(@Nonnull Level lev
protected void interactWith(Level worldIn, @Nonnull BlockPos pos, @Nonnull Player player) {
BlockEntity blockEntity = worldIn.getBlockEntity(pos);
if (blockEntity instanceof SolarCookerBlockEntity && player instanceof ServerPlayer) {
//player.openContainer((SolarCookerTileEntity) tileentity);
NetworkHooks.openGui((ServerPlayer) player, (SolarCookerBlockEntity) blockEntity, pos);
NetworkHooks.openScreen((ServerPlayer) player, (SolarCookerBlockEntity) blockEntity, pos);
}
}

/**
* Called periodically clientside on blocks near the player to show effects (like furnace fire particles).
*/
@Override
@OnlyIn(Dist.CLIENT)
public void animateTick(BlockState stateIn, @Nonnull Level worldIn, @Nonnull BlockPos pos, @Nonnull Random rand) {
public void animateTick(BlockState stateIn, @Nonnull Level worldIn, @Nonnull BlockPos pos, @Nonnull RandomSource rand) {
if (stateIn.getValue(BURNING)) {
double d0 = (double)pos.getX() + 0.5D;
double d1 = pos.getY();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package cech12.solarcooker.tileentity;
package cech12.solarcooker.blockentity;

import cech12.solarcooker.block.AbstractSolarCookerBlock;
import cech12.solarcooker.block.ReflectorBlock;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package cech12.solarcooker.tileentity;
package cech12.solarcooker.blockentity;

import cech12.solarcooker.init.ModBlockEntityTypes;
import cech12.solarcooker.init.ModRecipeTypes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import cech12.solarcooker.SolarCookerMod;
import cech12.solarcooker.block.AbstractSolarCookerBlock;
import cech12.solarcooker.init.ModBlocks;
import cech12.solarcooker.tileentity.SolarCookerBlockEntity;
import cech12.solarcooker.blockentity.SolarCookerBlockEntity;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import net.minecraft.client.model.geom.ModelLayers;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cech12.solarcooker.init;

import cech12.solarcooker.SolarCookerMod;
import cech12.solarcooker.tileentity.SolarCookerBlockEntity;
import cech12.solarcooker.blockentity.SolarCookerBlockEntity;
import net.minecraft.world.level.block.entity.BlockEntityType;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.registries.DeferredRegister;
Expand All @@ -11,7 +11,7 @@
@Mod.EventBusSubscriber(modid= SolarCookerMod.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD)
public final class ModBlockEntityTypes {

public static DeferredRegister<BlockEntityType<?>> BLOCK_ENTITY_TYPES = DeferredRegister.create(ForgeRegistries.BLOCK_ENTITIES, SolarCookerMod.MOD_ID);
public static DeferredRegister<BlockEntityType<?>> BLOCK_ENTITY_TYPES = DeferredRegister.create(ForgeRegistries.BLOCK_ENTITY_TYPES, SolarCookerMod.MOD_ID);
public static RegistryObject<BlockEntityType<SolarCookerBlockEntity>> SOLAR_COOKER = BLOCK_ENTITY_TYPES.register("solar_cooker", () -> BlockEntityType.Builder.of(SolarCookerBlockEntity::new, ModBlocks.SOLAR_COOKER.get()).build(null));

}
10 changes: 5 additions & 5 deletions src/main/java/cech12/solarcooker/init/ModItems.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cech12.solarcooker.init;

import cech12.solarcooker.SolarCookerMod;
import cech12.solarcooker.tileentity.SolarCookerBlockEntity;
import cech12.solarcooker.blockentity.SolarCookerBlockEntity;
import com.mojang.blaze3d.vertex.PoseStack;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
Expand All @@ -13,7 +13,7 @@
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.block.Block;
import net.minecraftforge.client.IItemRenderProperties;
import net.minecraftforge.client.extensions.common.IClientItemExtensions;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;
Expand All @@ -36,8 +36,8 @@ private static RegistryObject<Item> fromBlock(RegistryObject<Block> block, Creat
private static RegistryObject<Item> solarCookerItem() {
return ITEMS.register(ModBlocks.SOLAR_COOKER.getId().getPath(), () -> new BlockItem(ModBlocks.SOLAR_COOKER.get(), new Item.Properties().tab(CreativeModeTab.TAB_DECORATIONS)) {
@Override
public void initializeClient(@Nonnull Consumer<IItemRenderProperties> consumer) {
consumer.accept(new IItemRenderProperties() {
public void initializeClient(@Nonnull Consumer<IClientItemExtensions> consumer) {
consumer.accept(new IClientItemExtensions() {
final BlockEntityWithoutLevelRenderer myRenderer = new BlockEntityWithoutLevelRenderer(Minecraft.getInstance().getBlockEntityRenderDispatcher(), Minecraft.getInstance().getEntityModels()) {
private SolarCookerBlockEntity blockEntity;

Expand All @@ -51,7 +51,7 @@ public void renderByItem(@Nonnull ItemStack stack, @Nonnull ItemTransforms.Trans
};

@Override
public BlockEntityWithoutLevelRenderer getItemStackRenderer() {
public BlockEntityWithoutLevelRenderer getCustomRenderer() {
return myRenderer;
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/cech12/solarcooker/init/ModMenuTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

public class ModMenuTypes {

public static final DeferredRegister<MenuType<?>> MENU_TYPES = DeferredRegister.create(ForgeRegistries.CONTAINERS, SolarCookerMod.MOD_ID);
public static final DeferredRegister<MenuType<?>> MENU_TYPES = DeferredRegister.create(ForgeRegistries.MENU_TYPES, SolarCookerMod.MOD_ID);

public static final RegistryObject<MenuType<? extends AbstractContainerMenu>> SOLAR_COOKER = MENU_TYPES.register("solarcooker", () -> IForgeMenuType.create((pWindowID, pInventory, pData) -> {
BlockPos pos = pData.readBlockPos();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import cech12.solarcooker.config.ServerConfig;
import cech12.solarcooker.init.ModMenuTypes;
import cech12.solarcooker.tileentity.AbstractSolarCookerBlockEntity;
import cech12.solarcooker.blockentity.AbstractSolarCookerBlockEntity;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.entity.player.Inventory;
import net.minecraft.world.SimpleContainer;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package cech12.solarcooker.inventory;

import cech12.solarcooker.tileentity.AbstractSolarCookerBlockEntity;
import cech12.solarcooker.blockentity.AbstractSolarCookerBlockEntity;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.Container;
import net.minecraft.world.inventory.FurnaceResultSlot;
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ license="The MIT License (MIT)"
[[dependencies.solarcooker]]
modId="forge"
mandatory=true
versionRange="[41.0.63,)"
versionRange="[41.0.96,)"
ordering="NONE"
side="BOTH"
[[dependencies.solarcooker]]
Expand All @@ -27,6 +27,6 @@ license="The MIT License (MIT)"
[[dependencies.solarcooker]]
modId="jei"
mandatory=false
versionRange="[11.0.0.206,)"
versionRange="[11.0.0.211,)"
ordering="NONE"
side="BOTH"

0 comments on commit caa2ff9

Please sign in to comment.