Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Skyriis

Members
  • Content Count

    78
  • Joined

  • Last visited

Community Reputation

2 Neutral

About Skyriis

  • Rank
    Stone Miner

Converted

  • Gender
    Male
  • Location
    Germany

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. So if i want to open the Container using a Button from another gui i need to Send a packet to the Server which sends a new packet with the needed Information to the client? Well it kinda works now but the slots are on a weird place and since i can't get the screen width and height at the container i don't know how to place them where they should be. Some ideas how to fix that?
  2. The screen shows capability data (with buttons to edit the given values) and the inventory (which should be modifiable). So I guess i have to create a Container. How can i open a Container without a TileEntity?
  3. Hi Guys, is there an easy way to add the player inventory to a non container screen? Or do i need to create a Container to add the player inventory? Thanks in advance
  4. Hello i'm trying to get the source (player/mob/dispenser,...) of an effect which is/gets applied to another entity. Is there a way of doing this?
  5. Hi Guys, i'm trying to mixin into the KeyEntry class and add 2 Buttons there. In my test env everything works but as soon as i try it in a normal minecraft forge instance i'll get a MixinTransformerError which is caused by @Shadow field keybinding was not located in the target class net.minecraft.client.gui.widget.list.KeyBindingList$KeyEntry. No refMap loaded. Here is my mixin class: How can i fix that? Do i need to add an refMap.json somehow?
  6. Do you mean that pull request? https://github.com/MinecraftForge/MinecraftForge/pull/6858
  7. So i would have to manage the whole pose control using the player tick events if i want to prevent using mixin. Is that correct?
  8. I tried using the setForcePose method within the PlayerTickEvent (set the pose on pre tick event and remove the pose on post tick event) but somehow it's bugging between both poses. I guess the source of my problem is that Entity.getBoundingBoxForPose returns a bounding box for the default EntityType.PLAYER which is not what i need since i'm resizing the player inside of the EntityEvent.Size event. #Entity.class public EntitySize getDimensions(Pose p_213305_1_) { return this.type.getDimensions(); } protected AxisAlignedBB getBoundingBoxForPose(Pose p_213321_1_) {
  9. @Mixin(Entity.class) public abstract class MixinEntity { @Shadow public abstract EntityType<?> getType(); @Shadow public World level; @Shadow public abstract int getId(); @Inject(method = "getBoundingBoxForPose", at = @At(value = "INVOKE_ASSIGN", target = "Lnet/minecraft/entity/Entity;getDimensions(Lnet/minecraft/entity/Pose;)Lnet/minecraft/entity/EntitySize;"), cancellable = true) private void getBoundingBoxForPose(Pose pose, CallbackInfoReturnable<AxisAlignedBB> cir) { if (!this.getType().equals(EntityType.PLAYER)) return; Entity
  10. Hi, i wrote a mod which can grow and shrink the player but if the player is shrinked they crawl if they are inside a 1 block gap or if they jump inside a 2 block gap. How can i prevent them from doing that? I tried using the EntityEvent.Size and check if the event.getPose is Swimming (since this is the pose the player is using while crawling) but the entity isn't inside water. But it doesn't seems to work. Any ideas?
  11. I tried new Thread(() -> { while (ClientModLoader.isLoading()) { try { TimeUnit.SECONDS.sleep(1); } catch (InterruptedException e) { e.printStackTrace(); } } Minecraft.getInstance().enqueue(() -> SyncHandler.applyKeybindings()); }).start(); and it would "work" but since GameSettings is not threadsafe it would be a bad idea to use this correct?
  12. I could also start a new Thread at FMLClientSetupEvent which could wait for the loadup and instandly apply the Keybindings but i'm not sure if that would be a good way since the new Thread would have to check ClientModLoader.isLoading until it's false...
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.