-
-
Notifications
You must be signed in to change notification settings - Fork 94
Moving towards 1.21 update #677
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
Moving towards 1.21 update #677
Conversation
Okay, I'll close #676 and commit all changes here |
|
|
||
| public void initiate() { | ||
| api.getNetworkNodeRegistry().add(new ResourceLocation(AdvancedPeripherals.MOD_ID, "rs_bridge"), (tag, world, pos) -> read(tag, new RefinedStorageNode(world, pos))); | ||
| api.getNetworkNodeRegistry().add(ResourceLocation.fromNamespaceAndPath(AdvancedPeripherals.MOD_ID, "rs_bridge"), (tag, world, pos) -> read(tag, new RefinedStorageNode(world, pos))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving to AdvancedPeripherals.getRL would be neat
| @Override | ||
| public ResourceLocation getId() { | ||
| return new ResourceLocation(AdvancedPeripherals.MOD_ID, "rs_bridge"); | ||
| return ResourceLocation.fromNamespaceAndPath(AdvancedPeripherals.MOD_ID, "rs_bridge"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving to AdvancedPeripherals.getRL would be neat
| @Override | ||
| public ResourceLocation getTexture() { | ||
| return new ResourceLocation(AdvancedPeripherals.MOD_ID, "textures/gui/inventory_manager_gui.png"); | ||
| return ResourceLocation.fromNamespaceAndPath(AdvancedPeripherals.MOD_ID, "textures/gui/inventory_manager_gui.png"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving to AdvancedPeripherals.getRL would be neat
| public static void registerModels(ModelEvent.RegisterAdditional event) { | ||
| for (String model : TURTLE_MODELS) { | ||
| event.register(new ModelResourceLocation(new ResourceLocation(AdvancedPeripherals.MOD_ID, model), "inventory")); | ||
| event.register(new ModelResourceLocation(ResourceLocation.fromNamespaceAndPath(AdvancedPeripherals.MOD_ID, model), "inventory")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving to AdvancedPeripherals.getRL would be neat
|
LGTM |
Some EventBusSubscriber, ResourceLocation and ServerTickEvent related code has been updated to 1.21, but the network and the new Data Component still need to be changed