#help-development
1 messages ยท Page 797 of 1
using a custom event or couple of them to make generic events is also feasable
Don't detect inventories bu their name
for the purpose of finding the players responsible for the most amount of activity on the server, i guess it could be either or
Just change Cancellable to PlayerEvent
then what should I do? to see about matching inventories?
this would work for the cancellable events, what about the non-cancellable ones?
Change Cancellable to PlayerEvent
I just copied where i listened to cancellable
what I'm trying to do is refresh the inventory by checking for title matching and reopening the inv
got an example?
how do I make an itemstack with the head of a certain player I know the uuid of?
Make a skull and set the playerprofile @shadow night
if(currentInventory == inventoryYouWantToDetect)
You probably want a hashmap or simillar though since I assume there will be multiple inventory instances
nope just the one
i'm confusing
all i'm trying to do is update the icons if a player joins or leaves or moves to another server
https://i.imgur.com/PEsdCJt.png
๐
so can anyone recommend a library for packets which i can just shade into my plugin? (supporting most versions)
Is there currently something to get Entities that can spawn in a Biome ?
Or smth to get the mood/cave sounds ? or at least anything from a biome ?
ProtocolLib i guess
PacketEvents
Can't shade that
ah ok
one does not shade protocollib into your plugin
i wish i could tho
are you referring to this? https://github.com/retrooper/packetevents
Yes
uhh and if my plugin goes above the size allowed by spigot, what do developers commonly use to host their plugins?
cuz if its 2.5 and my plugin is 2.6, we are going to have a problem
Minimize
I am minimizing
Worst case proguard strip
yeah its 5.1mb
w minimize
i think its minimizing at least
what is your plugin doing ?
its using mini messages
which is ironically the biggest fucking library i've even seen
can't you use libraries feature
you can always do something like this https://www.spigotmc.org/wiki/plugin-yml/ (scroll down to libraries)
you called it 
(waiting for "im using 1.8")
kek
you can easly replicate that behavior anyway
doesn't spigot have rules on accessing the internet in a plugin?
or is that just for premium plugins?
also what is spigots plugin upload size?
i figured out i wasn't using minimize and it from 5.1 to 3.1
its just premium afaik
Around 4
sweet
so we up
thanks nerds (respectfully)
is us calling each other nerds like how people of certain races uses race specific slurs?
i guess noone knows and its not existing
biome api has been severely underdeveloped
yeah i am searching for a way to include datapack biomes more ... but currently all biomes are in an enum and there is no fancy way to change this ....
can i disable honey and slime blocks so they are not sticking other blocks to them?
Block#getVoxelShape()#overlaps(BoundingBox) doesnt work properly
If the player is in the air when it leaves, I teleport it back to the ground where it started, but why does the player take damage when it rejoins, how can I solve it?
Set fall distance to 0
before I teleport?
I'm currently running like this and experiencing the same problem:
- fall distance 0
- Teleport back
set Velocity
player.setVelocity(new Vector(0,0,0));?
yes, after teleport
okey
sorry just used it when testing ๐
have changed now ๐
Also using player keys 
Okey, I'll change that too, Thanks for the great feedback ๐
did you really expect people to only come here after they spent 200hrs into java
lol
im using lombok but cant make the builder public ?
No not really
Projectile.builder().whatever
also 200hrs of Java isn't that much
ok its fixed ty
if you dont have much respect for ur time then maybe
You seem to have the wrong mind set
You only want things done nothing else
You don't seem to want to learn things properly
If that's the case just hire someone to make the plugin
That would be respecting your time better :p
I do this now, same problem though
- player.setFallDistance(0);
- player.teleport
- player.setVelocity(new Vector(0,0,0));
is your location correct?
Homie you're not him
yes
Programming is like a skill
It may take 10k hours to master yet you still learn something every day
@echo basalt how good are you with quaternions
ask 7smile
I can only assume that due to it being in the quit event some settings are not being applied to the player in the event
Im not a corporation that can afford it, those people price themselves for much more than they are worth
No not really. Minecraft devs are usually a lot cheaper than they should be
So you're telling me that after spending 12 years of my life learning how to code, and about 7 making plugins in specific, I'm worth less than a guy flipping burgers at mcdonald's
https://paste.md-5.net/ofukupojox.java can someone sanity check my quaternion math because it is not outputting correct rotations
Because if that's the case then it's clearly better to just flip burgers yourself and pay a dev
without you I wouldnt have video game plugin made, without him I wouldnt have my food, I think that's self-explanatory
I mean....
I didn't say it but you did and I'm happy you did
Im about to head out soon ^^
Whats the issue?
everything is correct up to the method that runs on line 76
that is meant to use an anchor point, get a rotation with euler values and create a quaternion which will then rotate the point according to the euler values
Your food lasts for 15 minutes, the entertainment value of my plugin lasts for hours or weeks
blud forgor about digestion
blud forgor about the entertainment industry
Do you have any idea how I can solve this?
entertainment aint required to live so yeah I'd still put Burger flipping Joe a bit higher
To rotate around a anchor point you need to apply a translation dx, then your rotation, and a translation -dx
where dx is the offset from your current anchor. No idea how to do this using spigots weird methods so i would
apply those directly to the transformation matrix.
you don't need your 15$ mickey d's to live either
set the velocity/location on join not on quit
The main thing I'm seeing is that you don't take the minecraft industry seriously even though it feeds the mouths of many people, mostly in underpriviledged countries such as india, turkey and brazil
And introduces a lot of teens and such to the programming industry where they may step up to a real job
idk why you chose working at fast food restaurnt as some kind of lowest point, those people deal with shitty customers, work tirelessly doing same tasks for hours just to meet loose ends in a lot of cases, so yeah I'd give them that and put them defo higher than plugin devs lol
I mean that's sort of waht I'm trying to do here, no? I've got my anchor, a point, I convert the rotation to a quaternion, I apply the rotation to the vector that is defined between the anchor and the original target and then I get the vector between the original target and the rotated target so I can move my display by the correct amount
let me take a look at the code brb
We also get to deal with shitty people, experience burnout a lot more often and are undervalued by people like you because all you care about is a burger rather than the talent of a developer
hard to take a screenshot of it but in this test model it's almost completely correct, the only real issue is that the middle cube for some reason is not getting translated around correctly, in the debug data points it's moving by absolutely minuscule amounts that are not possible to see in-game and are just not right
digital fun colourful stuff and letters < food my guy, you gotta set the priorities straight, also just because I put you lower than burger flipping Joe doesnt mean that I find both of you bad, altho you arent the best example lol
but shockingly the child of that bone is correct which doesn't make any sense to me
like it's inheriting the same translation and applying it correctly
when the parent doesn't
whatever this fight isn't worth fighting
also the values getting passed to it are legit, I check and they seem to make complete sense and it sort of worked with euler rotations (but those are problematic for many well-known reasons)
how much do people take for plugins either way
I don't even know how you got baited into such a stupid discussion
I am doing a time command, do you think the best option would be to save the time in the database and then check it or use a runTaskLater?
but sure we'll take your criticism and switch to a better paying job at the nike sweatshop
Because it takes effort
XD
Sure you can make a lot more with commissions and stuff
long-term, these are the rates
Alex did commissions for โฌ120/h
that gives you no guarantee that they wont slack off with job just to squeeze more money
I've also made 600$/hr with commissions
minimum wage employees do this all the time
yep
if they get caught slacking off they're out
so are we
usually the trick with me is that I charge a lot hourly but then I'm maintaining systems for years so I think it's fair
I assume you are like freelancer
aint no way company would pay you 120usd/hr
What if you're a big youtuber and that person is making all the content on your vids
yeah because companies can and do pay way more than that
so you spend 2k to develop a video and it makes 10k
do that every day and you're set
Are you really going to kill your entire company because you want to underpay ppl
companies underpay people and it works
Does getArmorStandOffsetFromModel properly clone vectors internally?
We can just switch projects
and you can slack off without any pressure from your boss
We're not disposable
thats like 0 trust
homie if you have trust issues that's on you
yes, it's cloned and recalculated through that method
giving a random guy 120 usd as hourly wage to have a project done, I wonder if he's gonna actually work efficiently during this hour
random is stretching it by a lot
If the project takes 5 hours to be made, which is 600$
Because miniscule changes sounds to me like it gets rotated, and then rotated back, with floating point
precision resulting in a tiny loss.
not at all
And you get a lot more than 600$ worth out of it
It's worth it
Higher wage = ideally better quality service
I don't mean it's missing a bit of the rotation I mean that the amount of the translation is so small it's in scientific notation
it does not budge
So that you don't end up with the "what the fuck" moment when you want to update the project and it needs to be rewritten due to how bad it is
it feels like the NFT talk - "trust me you'll profit out of it I assure you"
it should never look like this
sus?
I'm not telling you that you'll profit out of it, I'm telling you that you get your money's worth
You can't rotate that freely I believe
you can
hm?
theres no guarantee that ill get hour of efficient work with paying for an hour of work
I thought it was a bit limited
no guarantee that ill get any work at all
Minecraft item models can only have rotations in increments of 22.5 degrees
Ah, the typical upfront payment issue
again, not for animations
half and half
but then you can scam the guy out of half his money
you can get a third-party but then the third-party is liable to scamming either of you
And he can scam you outta half your money
it's called living in a society, deal with it
I either sign a legal contract that allows me to sue with ease or I dont get the deal done
but then you're signing a legal contract over a 15$ plugin ยฏ_(ใ)_/ยฏ
All I'm getting out of this is that you have mad trust issues
I mean if you get scammed outa $7.5
Yeah, so if you do two calculations, one towards your target, and then the antipodal to it,
the result might look like a tiny movement, just through floating point precision loss.
And i mean tiny as in smallest possible loss.
alex got people paying it
Then idk skill issue
you want to say that 15usd has no value?
It's worth a burger
A few boorger
its worth a really good burger here
nah just one at mickey d's
you know
Not much more than that
but it should be moving by almost an entire block's span here
and everything else seems to be working fine
I wouldn't sign a contract over 15$ because it takes longer to read the terms than it does for me to get the job done
bold of you to assume I live in america
also this issue does not happen when I'm using euler angle rotations
just these quaternions
I live in an european country where the wage is around 4$/hr
your mindset would fit in here
It's just that I value my time and skill
I think we're up to 4.50
If I were to switch to an actual software consulting company I'd charge double
What are your debug values?
E-17
I don't slack off
hello, does anyone know how to give a block with a "can be place on" tag in Minecraft 1.20, using spigot and not command blocks? I've tried, but can't figure out how exactly placeablesKeys are working
it's going up though iirc
I think we're hitting 780 in jan or something
Sadly we don't have api for that
@echo basalt this is the longest argument ever on a discord channel about developing questions
those extra 20โฌ can wipe my tears after I look at the housing prices
grab some popcorn
๐ฟ
lmao this guy thinks he's buying a house on minimum wage
you might as well just spend it all in lottery tickets
Popcorn is always provided
Yeah I tried to find the beginning but it's never stopping when I scroll up
k thanks anyway !
stonks
so then how are you 12y skill programmer and still on min wage?
because I'm not on minimum wage
I charge 5-6x my country's minimum wage
sounded like you are
shut up he might be a fed
if you want to dodge taxes at least give up all things that were funded from them
bold of you to assume I dodge taxes lmao
what happening here ๐
yeah I would've had to assume if you didn't say you were going to do it after I explained how to go legit months ago
Average Spigotmc stuff
there's no shot you're declaring all your revenue, don't try to pull a trick
in case of any legal investigation I assure you that I pay my taxes (which are 0 right now)
@lost matrix any ideas?
What is the length of your fromParentToChild vector?
Im still trying to figure out the relations between the vectors.
They are just really good friends
not huge but certainly enough that it should be noticeable
I dont get how you could talk like that then, without cringing at yourself...
yeah I've been cringing hard all this time
I dont have to pay taxes for 6 or 7 more years thats how it is here
so its all legal
pov: you're 12
This means rotatedVector and fromParentToChild are pretty much identical...
Can someone break down what this argument is about it's quite funny
homie basically said we should be paid less because minecraft plugins are basically worthless
actually yes
erm
I argued we, as developers, should be paid enough for our work
Hahaha what an L take
Homie said that he'd rather pay 15$ for a burger than 15$ for a dev to work for an hour
and now we're here
Dusk says he values time but wastes our time and their own over trust issues and refuses to pay people to make the plugin for him
Minecraft plugins or not, depending on the goal it is still programming lmao. I hate that people think it's less work to build complex plugins compared to building other types of similar applications
Are you... storing angles inside a vector?
I never said that I value my own time, dont put words in my mouth like that
read carefully, the word own was never used
don't put words in his mouth like that
and stop going defensive now that we're ganging up on you
sounds like you're losing the argument fr
I literally just said that I dont value my own time by that and you are still being picky about it
damn
Maybe it works, but then I have to write all the data for the players whether they are to be teleported back or not to a file when the server closes, haven't come up with a better solution myself though.
you're here arguing with us
and yeah Id rather pay 15usd for a borgar
yes, they represent euler rotation values
For example I am currently building a powerful anticheat solution since I have an experienced background. I put in so much time and effort into further studying the source of Minecraft and having been programming for 10 years in java now is that less worth than someone with equal amount of experience building a WebApp??
For most people spending money on a plugin developer is basically just investing in their server / brand
well at least that was the idea
idk why you'd assume that I want to make my server
A youtuber is fine paying me 100$/hour if it means they make 150
@storm crystal @echo basalt Please move this convo to #verified or #general.
There are ongoing programming related topics going on with boned and wilmer.
Uhh boned is on our argument too
it's just you and magma
but sure let's argue elsewhere
homie using betterdiscord hell naw
tbh I'm fine with calling it quits and going to get lunch
nah the cutest discord plugin
I'm out of this convo now haha I think that dusk is completely in the wrong (if what Illusion said is actually what he meant). Enough with this argument in this channel tho ๐
is there a problem inherent to trying to store those vectors euler angles and converting them to a quaternion representation?
Setting the PDC of a player should work fine, right?
Storing angles in a positional vector is just a bit confusing to me.
Technically its not a problem.
ultimately the raw data is in x y z coords so it was an attempt to pass and increment it easily
I mean it's similar to how Vector is also a resizable array (java.util) or std::vector in C++ comes down to terminology and usability
I could pass the EulerAngle object instead but you can't do operations on it without having to instantiate a new object
at least not via api methods
so yeah it makes sense to me at least insofar as this problem is concerned that the rotatedvector and fromparenttochild are basically identical because this bone is not budging one bit
so yeah it is basically staying in the same spot
how do I structurize SQLite classes
the rotatedVector is wrong
like what classes do I need
and what do I use them for
do I just make 1 instance in main
or make it static and call it a day
which really is the whole issue, something about this rotation doesn't make sense to me
it has to be the rotationQuaternion that is incorrect, right?
either that or the rotation method
Switch the order of parentupdate and own update
transform
you want the parent to update after the child?
Hm
Just let me know how it affects the movement pls
so you want me to do what exactly
because it's depending on the parent's data to rotate
and translate
any specific line you want me to change because I don't realy understand what you want
Still thinking how to resilve the conditional update passing
how to get the length of a vector?
vector.length()
?paste
if it helps you I can stream what it looks like in movement if that helps you visualize it
Yeah would be helpful
Why does the compiler think that after comparing objects using this, subsequent objects can be null - https://paste.md-5.net/vojugebaha.cs
NAAAH
BRO MY CODE DOESNT WORK PROPERLY IF I DONT THROW AN EXCEPTION
THIS IS SO WEIRD
๐
Dumb af? Use any other IDE, those don't even do 1/5 of what InteliJ does.
the one after i reloaded my plugin the 79th was commented
and it should work like that
code plz
I wanna see this
question of changing block properties
is it possible to change:
- breaking strength
- experience gained
3)explosion resistance
how i undestand i need use reflection
Breaking strenght?
yes
2 is probably achievable with events, idk about others
3 suure, you can probably do some trickery.
yes?
Have you even checked your console for any errors?
its all
I thought maybe pickaxe needed to break or how long it takes to break
First, if you create a get instance property, don't put the instance public.
Then, it's my opinion, but I think using getInstance methods is a bad pattern in this case
yes this true
why would it be
there is no error except the one i throw
class that extends JavaPlugin is strictly singleton
Okay but passing around managers, suppliers, etc. instead of the whole plugin is better.
What is better for getInstance, saving the instance of the plugin in a constructor or the way where you request the instance from bukkit or whatever
i would personally use Bukkit.getPlugin(clazz)
Any difference tho? Besides preference
DI is our most beloved
just use spring ioc smh
idk tbh
Your whole plugin will be tight coupled (I don't think it's the right term, it's a literal translation from a french term) with your main class.
To me, all classes have to loose coupling by using dependency injection for example
By the way, using a getInstance method can encourage practices that can make the code less maintainable and less testable. For example, since the main instance is easily obtainable, there may be a temptation to "stock" all plugin dependencies into this class, even though it's not its responsibility.
Pass around managers and suppliers
and less testable
this is indeed true
As I said, it is only my opinion, I don't have time to talk about it
And @RequiredArgsConstructor
I hate how that looks
Your opinion is the most correct
What you described is the principle of oop lol
No
Yeah I know, but I know that a lot of people don't want to learn what OOP really is, and are lasy
A lot of people prefer doing fast things instead of good things... And in this case, using getInstance everywhere can be a solution. A bad one, but still a faster one.
(Even tho, as Uncle Bob said, "The only way to go fast is to go good")
any ideas why it doesnt work?
why the strength of the block and its resistance are protected and private; why is this needed? Nonsense
fr
I don't think if something can encurage bad practices is indeed bad
i mean you not can change this
in that case static shouldn't be used, as it can encurage bad practice
if not use nms
Fair enough
Is the variable actually named r or is it just something your wrote rq
Isn't that basic java
"reference" to current object
it is
You are depressing me
what is object ?
um yeah what can be object
is it just class instance
or what
yes, its class instance
so why even call it object
I think you should learn the basis of OOP
Yes
Yes
Great it still doesnt explain why use object name for class instance
Isnt that redundant
An object is a basic unit of object-oriented programming that represents a real-life entity. An object has state, behavior, and identity. State means the data or value of an object, behavior means the functionality or action of an object, and identity means the unique identifier of an object. For example, a car is an object that has state (color, model, speed, etc.), behavior (drive, brake, park, etc.), and identity (license plate number, VIN, etc.).
An object is created from a class, which is a blueprint or template for defining the common properties and methods of a group of objects. A class specifies what an object can do, but not how it does it. An object is an instance or result of a class. For example, a class can be a vehicle, and an object can be a car, a bike, a truck, etc. that belong to the vehicle class.
You can create and use objects in Java by using the keyword new, followed by the class name and the object name. For example, Vehicle car = new Vehicle(); creates an object named car of the class Vehicle. You can access the attributes and methods of an object by using the dot operator (.). For example, car.color = "red"; assigns the value "red" to the color attribute of the car object, and car.drive(); calls the drive() method of the car object.
You can learn more about objects and classes in Java from the following web sources:
- Object in Java | Class in Java - javatpoint
- Java Classes and Objects - W3Schools
- Classes and Objects in Java - GeeksforGeeks
Source: Conversation with Bing, 19/11/2023
(1) Object in Java | Class in Java - javatpoint. https://www.javatpoint.com/object-and-class-in-java.
(2) Java Classes and Objects - W3Schools. https://www.w3schools.com/java/java_classes.asp.
(3) Classes and Objects in Java - GeeksforGeeks. https://www.geeksforgeeks.org/classes-objects-java/.
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
If its chat gpt im not gonna read it D:
Imagine a class instance as a real-life object, obviously it's non-physical
you can do whatever with it, until it stops existing
Does
It's called an Object because that what it actually is... its just not physical
A car is both a vehicle and a car, isnโt it redundant to have the word car when thereโs already a vehicle word? @storm crystal
Also, it's literally a link for GeeksForGeeks there
what u talking about
This assumes there is more than one vehicle
While in objects there is just class instance
What
whattf
You told me that
learn inheritance
Idk if dude is high
opium
Class instance is kinda synonim for object
You worded it awfully poorly then
@storm crystal Itโs basically the same thing, just because there is two words for it does not make it redundant
Apparently its not
What, you asked is object class instance and I said "yes it is"
What is poorly worded there
Xd
It is basically the same thing
Is an object JUST a class instance
Basically
Tf
Implies theres nothing more to it
?
Cba ig
?cba
pluggg definitely regrets to for the most part inform you that unfortunately, they essentially are unable to definitely assist with definitely your enquiry, which essentially is fairly significant. Please simply really ask again later or possibly kind of ask someone else about this enquiry, demonstrating that the person that ran this command generally regrets to kind of inform you that unfortunately, they for the most part are unable to generally assist with actually your enquiry in a subtle way. Thank you very sort of much for kind of your time and the person that ran this command specifically wishes you a really good day, so the person that ran this command really regrets to actually inform you that unfortunately, they literally are unable to definitely assist with very your enquiry, or so they particularly thought.
Tbf, an object is not exactly a class instance. It is the association of methods and properties using these properties
They can be used in every paradigm
A class is a pattern that an object has to respect. When you instanciate a class, you create an object based on the class.
Using little words, OOP encourages modeling real-world entities, data, and behaviors using this approach. Classes enable encapsulation (grouping data and methods), abstraction (hiding implementation details), inheritance (reusing properties and methods), and polymorphism (treating objects interchangeably), making code more organized and flexible.
I know that this definition is not perfect, and a bit bad when you really know what OOP really is, but it's still a good way to start in my opinion.
Tbf, I really think you should read books and articles for a better understanding. Being a developer is not "coding working things", but "developing working applications which you can iterate easily". OOP is an answer to the problem given in the end of my definition of what a developer really is in my opinion.
Sorry if something is weird, I'm still learning English ๐
Nitpicking onto the naming that has been made years ago does not get you far lol
Then why wont people just answer it like that?
He did
You asked if it was the same thing, which it basically is
Then started saying it was redundant
the entire meaning of oop got interpreted wrongly in the very first place, I think it was meant to be a paradigm of sending messages, not modelling and objectifying around behavior and data
because it apparently is
why name a thing two different things when its basically the same
Vehicle, car
Literally definition of object is "instance of a class"
You have your answer in my message
Idk what is not clear there
great what other "vehicle" is there other than class instance
There is probably a lot of synonyms in programming
you're fried
xd
so if your code sucks and barely works you might just call it "a form of art" and leave it be?
I mean, art is subjective and to each their own
if you love what you do and you do it with passion you can call it art, I would say
Programming is sort of a poem because both involve using a language to express ideas, emotions, logic, and creativity. Programming languages and poetic languages have their own syntax, semantics, and structures that can be manipulated to produce different effects and meanings. Both programming and poetry can also be seen as forms of art, as they can generate visual, auditory, or interactive outputs that can be appreciated by humans and machines.
Some examples of code poetry are:
- The code {poems} anthologyยน, which is a collection of 55 poems written by web developers around the world in various programming languages. The code can speak literature, logic, math, and this code is meant to be read, not runยน.
- The ./code โpoetry bookยฒ, which is a unique collection of poems written in various programming languagesโ source code. Each poem is a valid program that produces visual artwork when compiled, and the entire book is formatted and designed to look like a piece of visual artยฒ.
- The Source Code Poetry Conference and Challenge, which are annual events that celebrate the intersection of computer science and poetry. The rules of the challenge are simple โ poems must compile, must rhyme, and must be cool.
You can find more information and examples of code poetry by searching the web or browsing the links I provided. I hope this helps you understand why programming is sort of a poem. ๐
Source: Conversation with Bing, 19/11/2023
(1) Coding with Poetry | Code.org. https://code.org/poetry.
(2) Code Poetry: Poems Written in Programming Languages - PopArt Studio. https://www.popwebdesign.net/popart_blog/en/2018/01/code-poetry-poems-written-in-programming-languages/.
I do love your way of thinking
boom
Sir this is spigot not philosophy 101
๐
Lol
I dont think that it'd care if you used 50 different forms of words or just one word
Sure, it also can be an excuse for bad paitings FOR U, but for the person that made it not
Heโs just trolling
I HOPE he is not serious
synonyms kinda suck in programming
๐ฅ
it really is not
Imagine when he learns anonymous inner classes are also objects
๐ฎ
no I still dont get the point of using both object and class instance names at the same time
Then don't do it. Boom you don't have to look for the point
Programming is also about developing your style while using common designs and patterns, if you don't like something simply don't do it
there's always another way to make the same thing
so u've been basically gatekeeping actual answer?
Copilot ๐ No more work for me
cool
do you know what the fuck gatekeeping is ๐
If you don't fancy naming stuff one way then don't it, ๐ฎ
Object is class instance. That is definition of the object
yeah but isnt programming about efficiency rather than expression
ALright ask the very question one more time I'll try to see if your words make sense
Same as you would say spoon is metal shit which u use to pick up soup
like you want to get your job done nice and well not make the code look flashy
Efficiency does not contradict expression
Yes u still call it spoon
Sure, but that's a whole other point
but why need another name for something that is already short
Ok he joined 2 days ago, bro's DEFINITELY not looking for the answer, you were right jantuck I'm leaving the convo xD
if you dont need anything else with it
Yeah he is troll
what other name my g
I mean, u use both addition and multiplication, even tho multiplication is just addition many times
Heโs been here for more than 2 days i think?
I didnt join 2 days ago
A class instance is the "definition" of what an Object is
what is difficult to understand there
wtf
Just ignore them it's a waste of time
why not cut it short and use class instance word instead of object if object is nothing more special?
Wait till he realise there is Object class
OOP -> Object Oriented Programming
what advantage does it give?
Gonna blow his mind for sure
it's not CLASS INSTANCE ORIENTED PROGRAMMING
Object is shorter and oritentef towards the design of object oritented programmind
great but object definition must've been made before the name
I don't know how to tell you that no one here is in charge of creating the namings
Same
not forcing you
im literally just asking why is that a thing
And then doubting us when we tell u the answer
great OOP has Object in it but that doesnt explain why Object is Class Instance, the name clearly's been made after Object's definition's been established
What name
In computer science, an object can be a variable, a data structure, a function, or a method. As regions of memory, objects contain a value and are referenced by identifiers.
In the object-oriented programming paradigm, an object can be a combination of variables, functions, and data structures; in particular in class-based variations of the para...
read that whole page
OOP name
and be happy
Oop was made way before java
so what did people have in mind when saying "let's call class instances objects"
there's everything you need here
๐
what advantage does it give
u're already tilted for some particular reason so I dont trust you anymore lol
if you read carefully, it's not just a class instance, there's more to it. That's a simplified version of what it is
homie still displaying his trust issues ffs not doing this again
lukas what time you goin to work today?
i have 40 minutes
nah
we bussin
someone who iterally says "i'm out" and casts random wikipedia article as an answer and tells me to read it, clearly a legit answer
tomorrow we catchin that train
uhh, that's going to be on tuesday
nah tomorrow
What do you work as lukas?
dev and fruit operator at a supermarket
just weekends tho
homie stocks the bananas at the local supermarket
Do you drive the fruits?
i mean
i'm mostly there staring at the ceiling
until the shop closes
because there's isnt much work
but I like to have some work outside of home
so do I dump all methods for SQLite in one class or make separate classes for it
like class for creating db
etc.
shoot for the stars aim for the moon
You ain't cool, 'til I say you cool
the way I do my sqlite is by basically just having this huge abstraction
that does literally nothing
other than making stuff configurable
helpful
is there some way to run a minecraft server from idea
idk the correct term in english
in here it's operator
so whatever
whats the point of making something that does nothing
so then I make an interface for whatever storage
make a class that extends my abstract sqlite class and impls the interface
and do logic
or make separate classes
for getting data making database removing data reading data
I'd say make one class per data type
So if you're storing player data and item data
You have a player data "DAO" and an item data "DAO"
I was just joking haha
BIG IMPORTANT NOTE, THIS GUIDE IS OUTDATED, SEE HERE FOR THE NEW VERSION: https://wiki.helpch.at/piggys-barn/java/hot-swapping
Before I get started,...
?
not for you
so?
so?
means something must've been wrong / not working anymore with it
or
there's more content in the new guide
which is not on spigotmc.org
which is why I didn't share it

you make it sound like that
so you just do it for every table in player data
like
rank, kills, etc.
pretty much
I'd honestly charge you for this advice because you're benefitting from my work and expertise
why
that'll be 15$ per message
fine
I'll do it for $14!
yeah but you're simply inferior
cash app or what
paypal or crypto
oh ure that crypto payment type deal
as previously iterated I'm not american
no thanks im not interested in supporting local cocaine addicts
lmao
I mean we have national cash app system and it works pretty well
@storm crystal
In that case
sometimes I forgor that it doesnt exist outside of my country
I accept MBWay
as a great friend of Illusion and his Domino's pizza partner
i accept donations too
then go and accept it
you are like those Romani people in my nearby suburbs who force you to hold a small wooden statue or a flower and then call you to pay 30 usd for it
yeah except you're talking to me asking for help
but you shoved a code and asked for a price
and I can provide the value you need and decide to charge you the "pain in the ass fee" and now you're throwing a fit
honk honk
isnt it illegal to charge money for services in here
pretty sure there was a command for that kind of stuff
I don't operate in the USA 
try and see
then why the fuck are you asking for help
"try and see" implies that something may not work
Or that it will
or that it will
Try and see
?tryandsee
Thatโs a pessimistic approach
which you are talking about
You should view life in a more optimistic way
Instead of โit implies it will failโ you should view it as โit implies it might workโ
"try and see" from both you or that other guy towards me is no other than "go and waste ur time and come back with not working code cuz itll 100% wont work"
Thatโs prejudice and pessimistic thinking
Just because we donโt want to entertain you most of the time does not mean we want you to waste your time.
the other guy has a name
@echo basalt I messed up ur illusion index btw
fuck
a nickname*
unless ur parents actually called you ImIllusion
His name i Bryan
it isn't but it could've been
what if it's true
I can confirm his name is illusion
if thats true have you been bullied in school for that?
๐
Idk illusion is kinda badass
I am afraid heโd probably be bullied more in high school for being a gamer
lukas met me in highschool
having discord nitro and setting up programming shenanigans on profile doesnt make you badass
tell em
he's not a gamer
Close enuf
he's the class nerd that sits in the corner and talks with one guy
you have an anime pfp the fuck are you on
that's me ๐
do you want to say that a person who smokes a pack of cigarettes daily saying that smoking is bad is less meaningful that if a healthy person said it?
Yes
I don't smoke 
me and illusion actually started talking more actively because I went to him and asked wtf he was doing programming on his feet in the corner of the classroom
and I don't have an anime pfp 
and you dont get analogies well
and you don't get bitches well 
Atleast he understand synonyms
he didn't
Illusion does
oh yes
I got a bf
true
Dang, remember to avoid police so they donโt check ur car for overweight driving
lmao
saw your mom's weight on a scale, about to ring her number 
@worldly ingot is ur mom jokes offlimit?
what is the point of interface if it only consists of empty shit, like you implement it and still have to fill methods
Google your question before asking it:
https://www.google.com/
?learnjava
Here are some links to get you started on learning Java:
- https://www.codecademy.com/learn/learn-java
- https://www.sololearn.com/learning/1068
- https://www.learnjavaonline.org/
- https://programmingbydoing.com/
- https://docs.oracle.com/javase/tutorial/java/index.html
The last one is the only official one, however some of those concepts assume that you already know a bit about programming.
Here are some links to get you started on learning Java:
- https://www.codecademy.com/learn/learn-java
- https://www.sololearn.com/learning/1068
- https://www.learnjavaonline.org/
- https://programmingbydoing.com/
- https://docs.oracle.com/javase/tutorial/java/index.html
The last one is the only official one, however some of those concepts assume that you already know a bit about programming.
https://media.discordapp.net/attachments/694661573125472256/998143126373941248/6n0v4g.gif
I'm so glad he's attempting to learn java
beloved w3schools doesnt explain it at all
he can finally start valuing all the other developers around him
get the car vehicle and bike thing out
like great you can do that
but why not just make those methods in a class
instead of implementing interface
How do I send screenshots?
they state "1) To achieve security - hide certain details and only show the important details of an object (interface).", but what would you be actually hiding
a car and a bike are both vehicles, you want a method to take both
and from whom
Depend on abstractions, not concrete implementations
what does nullable mean
Habit 7e
then why wont you specify what you are taking in method and call it a day?
Dependency Inversion
because its an interface
An interface in Java is a way to define a set of common behaviors that different classes can implement. By using interfaces, you can achieve abstraction, polymorphism, and multiple inheritance in Java. Let me explain these concepts briefly:
- Abstraction means hiding the implementation details and only showing the essential features of an object. An interface is a completely abstract class that only contains abstract methods and constants. When a class implements an interface, it promises to provide concrete implementations for all the abstract methods. This way, you can program at the interface level, instead of the specific implementation level. For example, you can use the interface
Animalto define the common behaviors of animals, such asanimalSound()andsleep(), and then have different classes, such asPig,Dog, andCat, implement the interface and provide their own versions of these methods. You can then create an array ofAnimalobjects and call the interface methods on each element, without knowing the exact type of each animalยนยฒยณ.
-
Polymorphism means the ability to perform the same operation on different types of objects. An interface is a way to achieve polymorphism in Java, because you can use the same interface reference to point to different objects that implement the interface. For example, you can use the interface
FirstInterfaceto define a methodmyMethod(), and then have different classes, such asDemoClass,AnotherClass, andThirdClass, implement the interface and provide their own implementations ofmyMethod(). You can then create a variable of typeFirstInterfaceand assign it to any object that implements the interface, and callmyMethod()on it, without knowing the exact type of the objectยนยฒ. -
Multiple inheritance means the ability to inherit from more than one superclass. Java does not support multiple inheritance for classes, because it can cause conflicts and ambiguity. However, Java supports multiple inheritance for interfaces, because interfaces only contain abstract methods and constants, and do not have any implementation details. Therefore, a class can implement more than one interface, and inherit the behaviors from all the interfaces. For example, you can use the interfaces
FirstInterfaceandSecondInterfaceto define different methods, such asmyMethod()andmyOtherMethod(), and then have a class, such asDemoClass, implement both interfaces and provide implementations for both methods. You can then create an object of typeDemoClassand use it as either aFirstInterfaceor aSecondInterfacereference, and call the methods from both interfaces on itยนยฒ.
doesnt tell me anything
An interface is a contract that describes what methods an implementing class has, so if you say you're an animal, you must surely have a breathe method or something
And you can pass a generic Animal and make it breathe
you know that you can just post a link if you want to scrap things out of the internet
Interfaces Interface in Java is a bit like the Class, but with a significant difference: an interface can only have method signatures, fields and default methods. Since Java 8, you can also create default methods [https://docs.oracle.com/javase/tutorial/java/IandI/defaultmethods.html]. In the next block you can see an example of interface: publ...
do your own research for anything else I'm not helping ppl who don't appreciate developers charging a fair price for their knowledge
Interface in Java, why use interface with examples and marker/tagged java interface with difference between abstract class and java interface, understanding relationship between class and interfaces, java interface example,what is marker in java, tagged interface in java.
But you wonโt read our links
go watch that bald dude's yt vids
at least have some respect for people who wrote those articles and cite them
19/11/2023
(1) Why do we need interfaces in Java? - Stack Overflow. https://stackoverflow.com/questions/3528420/why-do-we-need-interfaces-in-java.
(2) Java Interface - W3Schools. https://www.w3schools.com/java/java_interface.asp.
(3) What Is an Interface? (The Javaโข Tutorials - Oracle. https://docs.oracle.com/javase/tutorial/java/concepts/interface.html.
(4) Why do we need interfaces in Java? - Stack Overflow. https://stackoverflow.com/questions/3528420/why-do-we-need-interfaces-in-java.
(5) Java Interface - W3Schools. https://www.w3schools.com/java/java_interface.asp.
(6) What Is an Interface? (The Javaโข Tutorials - Oracle. https://docs.oracle.com/javase/tutorial/java/concepts/interface.html.
(7) Java Interfaces | Baeldung. https://www.baeldung.com/java-interfaces.
(8) Interfaces in Java - GeeksforGeeks. https://www.geeksforgeeks.org/interfaces-in-java/.
In Java to implement multiple inheritance we use interfaces. Is it the only use of interfaces? If yes, what is the main use of interface in Java? Why do we need interfaces in Java?
The documentation for JDK 21 includes developer guides, API documentation, and release notes.
Explore the concept of Java interfaces and learn how Java uses them to implement polymorphism and multiple inheritance.
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
thanks
I still dont get the difference
making method1 and method2 in class
or making interace with those methods and implementing it into the class
I still need to fill it
with code
Weโre not ur teachers or your parents. Go pay someone to hold ur hand
a car has an engine but a bicycle doesn;t. if you return a simple Vehicle Object a bicycle would have an engine method.
But, the human is the engine.
okay but where does interface work here
you retun the interface when getting a car or bicycle, not the Vehicle
cant i make separate class for bike and not make engine in here
yes you could
isnt interace supposed to be empty
yes
like consisting of only blank methods
@drifting halo You want a go?
Interface Vehicle contains a brake method, both car and bike will implement Vehicle and have that method that is common in both
what happens then
Wdym
what happens after I return interface
Ye
So. The blank methods specify conditions or methods things have in common, but doesnโt implement the same. So Vehicle ss Lukas has said has a brake method.
Bike breaks differently than Car.
But to your code you just do
some method takes vehicle
Vehicle vehicle = this.vehicleManager.getVehicle(uuid);
vehicle.brake();
Yay
An interface does nothing by itself
why make this (the first) when I can do this (second)
thats what im confused about
because you could have 900 animals
Because you're missing out on abstraction and scalability
you dont want to make a method have 900 params
He's asking like
Why would I have Animal pig = new Pig()
Rather than just using Pig directly
Oh
My response is
Depends on context
Let's say you have 20 animals
no im not asking about it
Are you really going to store 20 lists
lol
Pig is Animal and is Object
Or are you just going to have a List<Animal> barn
Not really liskov more like DI
Animal would be abstract so it can;t be instanced
Liskov basically means you can't unimplement methods through inheritance
I get definition of abstraction but I dont get the point
why not allow access to information
You have all the information you need through the interface contract
You don't want to expose implementation details because they can change at any time
and regardless of implementation your code should work
huh?
yeah I dont get it
great they change and what now
what if they change
like what happens
Your code should still work
just learn java dab
that's all
something bad happens?
so why I need abstraction and interfaces?
the same way you don't need to know what type of collection your objects are stored on, if it's a set or a list who cares
Polymorphism
Just learn OOP itself
you can do whatever, its probably easier to see the actual benefit when you run into issues not using certain things
You can for example, make an interface which represents how your data is stored
I literally ran but looks like I can go fine without it
And have an impl for mongo, for sqlite, for mysql
then dont use it
why would I need it?
And interchange between impls yet keep the contract intact
but looks like it wont work and nobody wants to tell me why
that's a basic real example that you don't care about because you don't need to use anything other than yml
so why am I even bothering
you told me to change it to dbs instead of configs