Skip to content

Simple ARS System #1627

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Simple ARS System #1627

wants to merge 4 commits into from

Conversation

duzos
Copy link
Member

@duzos duzos commented Jun 17, 2025

TODO /

About the PR

Why / Balance

Technical details

Media

Requirements

Breaking changes

Changelog

@github-actions github-actions bot added A: Tardis Components Area: Tardis components & manager. S: Untriaged Status: Indicates an item has not been triaged and doesn't have appropriate labels. labels Jun 17, 2025
Copy link
Member

@DrTheodor DrTheodor left a comment

Choose a reason for hiding this comment

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

no
fuk oyu

}

// return the size of the template in blocks * 10 as the fuel cost
StructureTemplate template = optional.get();
Copy link
Member

Choose a reason for hiding this comment

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

thats silly

Copy link
Member

Choose a reason for hiding this comment

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

this fuel cost stuff should be provided by the BasicArsStructure

Copy link
Member

Choose a reason for hiding this comment

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

or basically just any implementation

return (int) Math.min(volume, FuelHandler.TARDIS_MAX_FUEL);
}

default Optional<Identifier> structureIdOptional() {
Copy link
Member

Choose a reason for hiding this comment

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

that doesnt make any sense
optionals exist to force people to handle nulls
whats the point of using an optional when you can just get a nullable id

Copy link
Member Author

Choose a reason for hiding this comment

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

for codec

Copy link
Member

Choose a reason for hiding this comment

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

just
do it in the codec then
you dont have to introduce a whole new method that is used in a codec of another class

Copy link
Member

Choose a reason for hiding this comment

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

either remove this method or remove the method which can return a nullable value

return this.text().getString();
}

private static Text createNameText(Identifier id, String prefix) {
Copy link
Member

Choose a reason for hiding this comment

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

why not use #toTranslationKey?
is it to handle the / (i dont rememer if they are handled by mc or not)?
if so, this method should be at TextUtils.

}

static {
ServerPlayNetworking.registerGlobalReceiver(REQUEST_PLACE, (server, player, handler, buf, responseSender) -> {
Copy link
Member

Choose a reason for hiding this comment

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

ideally this piece of code should be in the handler

Identifier id = this.id();

return new Identifier(id.getNamespace(), "interiors/" + id.getPath());
}

@Override
public Identifier structureId() {
Copy link
Member

Choose a reason for hiding this comment

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

???????????????????????????????????????????????
why does it just go to #getStructureLocation?

import java.io.InputStreamReader;
import java.util.concurrent.atomic.AtomicReference;

public class JsonDecoder {
Copy link
Member

Choose a reason for hiding this comment

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

this should belong to modkit

Copy link
Member

Choose a reason for hiding this comment

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

ideally
in the future

@github-actions github-actions bot added the S: Awaiting Changes Status: Changes are required before another review can happen. label Jun 17, 2025
@duzos
Copy link
Member Author

duzos commented Jun 17, 2025

"heh let's do node based blah blah" 🤓👆

@DrTheodor
Copy link
Member

perish

@Mansarde Mansarde added the S: Draft Status: This is a draft and might need to be retriaged upon opening. label Jul 21, 2025
@github-actions github-actions bot added the S: Merge Conflict Status: Needs to resolve merge conflicts before it can be accepted. label Jul 24, 2025
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: Tardis Components Area: Tardis components & manager. S: Awaiting Changes Status: Changes are required before another review can happen. S: Draft Status: This is a draft and might need to be retriaged upon opening. S: Merge Conflict Status: Needs to resolve merge conflicts before it can be accepted. S: Untriaged Status: Indicates an item has not been triaged and doesn't have appropriate labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants