Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Ore and additional changes #199

Merged
merged 5 commits into from
Mar 4, 2024
Merged

New Ore and additional changes #199

merged 5 commits into from
Mar 4, 2024

Conversation

CommandrMoose
Copy link
Collaborator

Version 1 of the new ore.
Fixes rendering issue on internal root doors.
Updates NBT of the cage generated
...

Copy link
Collaborator

@Jeryn99 Jeryn99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have left some comments on what needs addressed in places, some important and some not so much

I have not yet tested in game

public class AstralManipulatorRenderer implements BlockEntityRenderer<AstralManipulatorBlockEntity>, BlockEntityRendererProvider<AstralManipulatorBlockEntity> {

public AstralManipulatorRenderer(Context context) {
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a big concern, but it's always good to store the context as a field incase we ever do want to use it
But not worth changing at the moment

@@ -12,8 +16,14 @@ public RootShellDoorBlockEntity(BlockPos blockPos, BlockState blockState) {
super(BlockEntityRegistry.ROOT_SHELL_DOOR.get(), blockPos, blockState);
}

@Override
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it does nothing, do not have it here
If you are removing vanilla functionality, leave a comment

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment left.

import java.util.Arrays;
import java.util.List;

// Before 50 says anything. Yes, this should be made into a codec. Will I do it? No.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Poor Soap

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just let me know what fields are needed lmao


public enum ScrewdriverMode {

GENERIC,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the difference between them all? Javadoc the enum

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added documentation




if (useOnContext.getLevel().getBlockState(useOnContext.getClickedPos()).getBlock() == Blocks.IRON_BLOCK) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getLevel is used numerous times, make it a variable

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made both a variable


if (useOnContext.getLevel().getBlockState(useOnContext.getClickedPos()).getBlock() == Blocks.IRON_BLOCK) {
useOnContext.getLevel().setBlockAndUpdate(useOnContext.getClickedPos(), BlockRegistry.ZEITON_FUSED_IRON_BLOCK.get().defaultBlockState());
useOnContext.getItemInHand().shrink(1);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getItemInHand is used numerous times, make it a variable

@Jeryn99 Jeryn99 merged commit 0923728 into minecraft/1.20 Mar 4, 2024
1 check passed
@CommandrMoose CommandrMoose deleted the 1.20-tools branch April 22, 2024 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants