Skip to content

Instantly share code, notes, and snippets.

View BoogieMonster1O1's full-sized avatar
🎁

Shrish Deshpande BoogieMonster1O1

🎁
View GitHub Profile
//
// ViewController.swift
// Test0
//
import UIKit
import WebKit
class ViewController: UIViewController, WKUIDelegate, WKNavigationDelegate, UIWebViewDelegate {
var webView: WKWebView!
import io.github.cottonmc.cotton.gui.client.BackgroundPainter;
import io.github.cottonmc.cotton.gui.client.LightweightGuiDescription;
import io.github.cottonmc.cotton.gui.widget.WGridPanel;
import io.github.cottonmc.cotton.gui.widget.WLabel;
import io.github.cottonmc.cotton.gui.widget.WListPanel;
import io.github.cottonmc.cotton.gui.widget.WPlainPanel;
import net.minecraft.client.resource.language.I18n;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.text.LiteralText;
import net.minecraft.world.Difficulty;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.entity.LivingEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.state.property.IntProperty;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IWorld;
import net.minecraft.world.World;
import static io.github.boogiemonster1o1.ner.Elements.BlockS.POLISHED_LIMESTONE_COLUMN;
@BoogieMonster1O1
BoogieMonster1O1 / index.jsp
Created May 29, 2020 07:35
The Main file, which handles all sqlite queries
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="java.sql.*" %>
<html>
<head>
<title>Database Dashboard</title>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
</head>
<body style="padding: 3px">
<h1 class="w3-bar w3-black">Database Dashboard</h1>
<h4>Project Directory : $TOMEE<%out.print(request.getContextPath());%></h4>

Adding Tools

Creating a Tool Material class

The first step to creating a tool is to implement the ToolMaterial interface in a class

It's best to make the class as an enum, as it doesnt require you to create an object a regular class, and enum constants make adding tool materials easier. Creating a tool is very similar to creating armor.

Adding Dependencies

Introduction

Adding Dependencies allows you to access hooks, tools and apis provided by other mods. Depending on other's code allows you to spend lesser time on writing your code, and more time on refining it. A commonly used dependency in fabric is Fabric API.

Adding the repository

Open your build.gradle file and add the required maven repositories

repositories {
    maven {
 name = "Example"

Install/Verify Java (Mac OS)

You will need Java installed if you want to:

  • run the current version of the Fabric Installer
  • use MultiMC
  • change the default “JAVA EXECUTABLE” to other than the bundled Java runtime in a Minecraft Launcher “Installation”

Step 1: Verify if Java is already installed

Open launchpad by pressing F4 and type in terminal.
Alternatively, you could also do it with Spotlight by pressing Command + space.
I Spotlight image

@BoogieMonster1O1
BoogieMonster1O1 / Planned-Events.md
Last active July 10, 2020 06:22
A possible list of future events to add to legacy fabric api

Planned events

Lifecycle

  • AchievementAchievedCallback
  • LightningStrikeCallback Done
  • PlayerDisconnectCallback Done
  • SoundPlayedCallback
  • OutOfMemoryCallback Done
  • ChunkGeneratedCallback
  • BlockEntityTickCallback
@BoogieMonster1O1
BoogieMonster1O1 / GuiMultiLineTextField.java
Last active July 20, 2020 16:14 — forked from Draco18s/GuiMultiLineTextField
A multiline text entry box for Minecraft's GUI system
package com.draco18s.runic.client.gui;
import java.util.ArrayList;
import org.lwjgl.input.Mouse;
import com.google.common.base.Predicate;
import com.google.common.base.Predicates;
import net.minecraft.client.Minecraft;

Guidelines

  1. Please be nice to new members. Don't scare them away.
  2. Please use the irc for the purpose it was designed for.

Rules

  1. Guidelines are not hard rules, but breaking them too much can get you banned regardless.
  2. NSFW content is not allowed.
  3. No hate. Be respectful to others. Everyone is welcome to share ideas.
  4. Respect people's privacy. Outing of other people's private information, information that they'd most probably share themselves if they wanted to share it at all (real name, age, gender etc.) will not be tolerated!
  5. If you have a problem with another person's behaviour on the channel, you should inform a moderator. Do not publicly accuse anyone of anything.