Skip to content

Commit

Permalink
Version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
GirafiStudios committed May 17, 2020
1 parent 2f6e827 commit 7b17b3d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
minecraft_version=1.15.2
forge_version=31.1.45
mappings=20200414-1.15.1
mod_version=2.0.13
jei_version=6.0.0.2
forge_version=31.1.87
mappings=20200514-1.15.1
mod_version=2.0.14
jei_version=6.0.0.4

org.gradle.jvmargs=-Xmx4G
org.gradle.daemon=false
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import net.minecraft.item.BlockItemUseContext;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.CompoundNBT;
import net.minecraft.state.properties.ChestType;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.Direction;
import net.minecraft.util.math.BlockPos;
Expand All @@ -36,19 +37,19 @@ public NeptunesBountyBlock() {
}

@Override
public TileEntity createNewTileEntity(IBlockReader blockReader) {
public TileEntity createNewTileEntity(@Nonnull IBlockReader blockReader) {
return new NeptunesBountyTileEntity();
}

@Override
public BlockState getStateForPlacement(BlockItemUseContext context) {
IFluidState fluidState = context.getWorld().getFluidState(context.getPos());
return this.getDefaultState().with(FACING, context.getPlacementHorizontalFacing().getOpposite()).with(WATERLOGGED, fluidState.getFluid() == Fluids.WATER);
return this.getDefaultState().with(TYPE, ChestType.SINGLE).with(FACING, context.getPlacementHorizontalFacing().getOpposite()).with(WATERLOGGED, fluidState.getFluid() == Fluids.WATER);
}

@Override
@Nonnull
public BlockState updatePostPlacement(BlockState state, @Nonnull Direction direction, BlockState facingState, @Nonnull IWorld world, @Nonnull BlockPos currentPos, @Nonnull BlockPos facingPos) {
public BlockState updatePostPlacement(BlockState state, @Nonnull Direction direction, @Nonnull BlockState facingState, @Nonnull IWorld world, @Nonnull BlockPos currentPos, @Nonnull BlockPos facingPos) {
if (state.get(WATERLOGGED)) {
world.getPendingFluidTicks().scheduleTick(currentPos, Fluids.WATER, Fluids.WATER.getTickRate(world));
}
Expand All @@ -57,7 +58,7 @@ public BlockState updatePostPlacement(BlockState state, @Nonnull Direction direc

@Override
@OnlyIn(Dist.CLIENT)
public void addInformation(ItemStack stack, @Nullable IBlockReader world, List<ITextComponent> tooltip, ITooltipFlag flag) {
public void addInformation(@Nonnull ItemStack stack, @Nullable IBlockReader world, @Nonnull List<ITextComponent> tooltip, @Nonnull ITooltipFlag flag) {
super.addInformation(stack, world, tooltip, flag);
CompoundNBT tag = stack.getChildTag("BlockEntityTag");
if (tag != null) {
Expand Down

0 comments on commit 7b17b3d

Please sign in to comment.